summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1eb0f459580d493cfac47400c477eb2afcd9fb0d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=googleAuthR
_pkgver=2.0.2
pkgname=r-${_pkgname,,}
pkgver=2.0.2
pkgrel=1
pkgdesc='Authenticate and Create Google APIs'
arch=('any')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
depends=(
  r
  r-assertthat
  r-cli
  r-digest
  r-gargle
  r-httr
  r-jsonlite
  r-memoise
  r-rlang
)
optdepends=(
  r-bigqueryr
  r-covr
  r-devtools
  r-formatr
  r-googleanalyticsr
  r-knitr
  r-miniui
  r-rmarkdown
  r-roxygen2
  r-rstudioapi
  r-shiny
  r-testthat
  r-usethis
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('fd55c85b5f78aa52b6e5cabd4143162cb497ab7288c8db3676acf58a0f393996')

build() {
  R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
}

package() {
  install -dm0755 "${pkgdir}/usr/lib/R/library"
  cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
  install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: