blob: af22b27a35afb1ae275a3c3691916648ef880925 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>
_pkgname=dtplyr
_pkgver=1.3.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=6
pkgdesc="Data Table Back-End for 'dplyr'"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('MIT')
depends=(
r-cli
r-data.table
r-dplyr
r-glue
r-lifecycle
r-rlang
r-tibble
r-tidyselect
r-vctrs
)
checkdepends=(
r-testthat
r-tidyr
)
optdepends=(
r-bench
r-covr
r-knitr
r-rmarkdown
r-testthat
r-tidyr
r-waldo
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"$_pkgname-fix-tests-1.patch::https://github.com/tidyverse/dtplyr/commit/52f4c65fa898213dd4bd778e5854f4429e0dbcb1.patch"
"fix-tests-2.patch")
md5sums=('d1cc10d74af58ac44a99392237aca50e'
'125cf7416ac8b057a81ef48ea12ff880'
'fc764beecb5093ab33fbf56c7e9c8c12')
b2sums=('886ea73df057735d35a40e95043a07bb8de8abf866ed77ea5a966a45329e780e34a51d96ee177e05138c05e01735244325bf64ec946132348e4107a65819424f'
'ff13698456b9b29423f6fdc218df49b9ff5dc8357c9bde10a76b4db02d413e499431276bbbfbe496fd9e7d81f6a3ea3f1db76353b4223abba02b2cec1963cb51'
'2941395d51fb661330144a23d22c4f27d2f3a82eb73061138dfe7f34a196a91eec8c68747429721442c34d9708cfa8dcf5e96d8c932c5e6cfa0bb12d82b4bc89')
prepare() {
# fix snapshot tests
patch -Np1 -d "$_pkgname" < "$_pkgname-fix-tests-1.patch"
patch -Np1 -i fix-tests-2.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"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
|