blob: 1fb4e8bdc7a6a7ab9c4938d186cb051e18cff032 (
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
51
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=paws.common
_pkgver=0.7.7
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Paws Low-Level Amazon Web Services API"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=(Apache)
depends=(
pandoc
r-base64enc
r-curl
r-digest
r-httr
r-jsonlite
r-rcpp
r-xml2
)
checkdepends=(
r-mockery
r-testthat
)
optdepends=(
r-covr
r-crayon
r-mockery
r-rstudioapi
r-testthat
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('88b12a9c1d983dccb0563b3b9c30d80d')
b2sums=('cb9e4ad2a131db241eb6c0e9b38aaca29c858c69b081c18b2d2247b3a7f3b47c07d26bf3b6e02aa153b2c610a7b431f5a62dc53dd525089415bb20adc587891d')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|