mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
89 lines
1.7 KiB
Bash
89 lines
1.7 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
|
|
_pkgname=arrow
|
|
_pkgver=19.0.1
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
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=('686db3adc866192b970ccd5877922d98'
|
|
'905a328d53b0b7591f769e07c29c3937')
|
|
b2sums=('0239b6148ad926eb5b2bb8431b73b97478140de018cd71b2b8eaa8f0db8bd5cd2064e5f7e043302202c9920b01951b8d6b84c90423a4ac0bc833bfb12e3c14d9'
|
|
'6feffc1a3ff38014a9f644de778f0056f0f48787ce9a4d40bff8d27d8e42df2b05f258638150cadbd5b1a18d4697f35bf07cb8d9a78ba6357b8d94ef9d714874')
|
|
|
|
prepare() {
|
|
# fix build with system arrow, skip failing tests
|
|
patch -Np1 -i fix-build.patch
|
|
}
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname" \
|
|
--configure-vars=ARROW_R_ALLOW_CPP_VERSION_MISMATCH=true
|
|
}
|
|
|
|
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"
|
|
}
|