blob: 7e50a926165837167ad254f78ad604ecec0050f7 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=paletteer
_pkgver=1.6.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Comprehensive Collection of Color Palettes"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
r-prismatic
r-rematch2
r-rlang
r-rstudioapi
)
checkdepends=(
r-ggplot2
r-ggthemes
r-harrypotter
r-oompabase
r-palr
r-pals
r-scico
r-testthat
r-vdiffr
r-viridislite
)
optdepends=(
r-covr
r-ggplot2
r-ggthemes
r-harrypotter
r-knitr
r-oompabase
r-palr
r-pals
r-rmarkdown
r-scico
r-testthat
r-vdiffr
r-viridislite
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('2149379a13391b97581b43dd87aa6fd0')
b2sums=('aa265005b33047bb26c085ded2212bbd60d13bb5a4c9590c1e756226a23315e0e625564af420dc5606408bd0a585ecbf75f732f873a935ac34384f9d6d576f1d')
prepare() {
# skip failing test
sed -i '/"colors show up correctly for scico"/a\ \ skip("fails")' \
"$_pkgname/tests/testthat/test-vdiffr_palette_check.R"
}
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"
}
|