summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 197b4bc7cd0f558e66243230b10a469f7ffac0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_gitname=limer
pkgname=r-${_gitname,,}-git
pkgver=r49.4e0f7c5
pkgrel=1
pkgdesc="Provides access to LimeSurvey's RemoteControl 2 API"
arch=(any)
url="https://github.com/cloudyr/${_gitname}"
license=(MIT)
depends=(r r-base64enc r-httr r-jsonlite)
makedepends=(git)
optdepends=(r-testthat)
source=("${_gitname}_src::git+https://github.com/cloudyr/${_gitname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}_src"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}"

  R CMD INSTALL "${_gitname}_src" -l ${srcdir}
}

package() {
  cd "${srcdir}"

  install -dm0755 "${pkgdir}/usr/lib/R/library"
  cp -a --no-preserve=ownership "${_gitname}" "${pkgdir}/usr/lib/R/library"
}