blob: 99e074cb6557639195e31f126543fc1cc7b78376 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: dhn <neilson+aur@sent.com>
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=ggthemes
_pkgver=5.1.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Extra Themes, Scales and Geoms for 'ggplot2'"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only')
depends=(
r-ggplot2
r-lifecycle
r-purrr
r-scales
r-stringr
r-tibble
)
checkdepends=(
r-dplyr
r-testthat
r-vdiffr
)
optdepends=(
r-covr
r-dplyr
r-extrafont
r-glue
r-knitr
r-lintr
r-mapproj
r-maps
r-pander
r-quantreg
r-rlang
r-rmarkdown
r-spelling
r-testthat
r-tidyr
r-vdiffr
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"fix-tests.patch")
md5sums=('9491e966073dd9aac9c0356717a31662'
'4a0d494a7e9b94929ed69ae6256ec9c5')
b2sums=('39b71e02bcec780e1600fb1cd8ff44eb3cc032545b043217d0e85c186567c68b999e455b903ba649ab3464b447bdeed3ba599d6bb10dd07df682c353261f0ff7'
'0bb55a8e23bb306f5e5158864d4a6a62c35092fc14e65124c48e472e7e59d15c48fad23ba775c38e1fe422274776362bf886cc9c334e39738b019134783ee5b2')
prepare() {
# fix test snapshots
patch -Np1 -i fix-tests.patch
}
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"
}
|