blob: f39a5b2ea24826f347ad5f2f6516641659b367ed (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=arrow
_pkgver=14.0.0.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Integration to 'Apache' 'Arrow'"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=(Apache)
depends=(
arrow
r-assertthat
r-bit64
r-glue
r-purrr
r-r6
r-rlang
r-tidyselect
r-vctrs
)
makedepends=(
r-cpp11
)
checkdepends=(
r-blob
r-curl
r-dplyr
r-hms
r-lubridate
r-reticulate
r-stringr
r-testthat
)
optdepends=(
r-blob
r-cli
r-curl
r-dbi
r-dbplyr
r-decor
r-distro
r-dplyr
r-duckdb
r-hms
r-jsonlite
r-knitr
r-lubridate
r-pillar
r-pkgload
r-reticulate
r-rmarkdown
r-stringi
r-stringr
r-sys
r-testthat
r-tibble
r-tzdb
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"fix-build.patch")
md5sums=('84cefe34da6af43984b308ca2a57d7bd'
'3c7ea1780d1a7eff30d0243e161534ce')
b2sums=('5d234175981bde6b094593856e8286048ca05308eb00d591c96a68826e43e78c2cf8d594316c50946b374e6e872ff065aeb191c36d0ba0b1104f31cc94ae6102'
'1926311b6ec30259adcfcfa94cfff8cbe55bf3a87c324112fba5e601bd1daa404efd79e7b78a21eb72982686e12614f33c17421a59cc07858734d58676edd70c')
prepare() {
# fix build with system arrow, skip failing tests
patch -Np1 -i fix-build.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"
}
|