mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
49 lines
1 KiB
Bash
49 lines
1 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
|
|
_pkgname=nanoarrow
|
|
_pkgver=0.3.0.1
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Interface to the 'nanoarrow' 'C' Library"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=(Apache)
|
|
depends=(
|
|
r
|
|
)
|
|
checkdepends=(
|
|
r-bit64
|
|
r-blob
|
|
r-hms
|
|
r-testthat
|
|
)
|
|
optdepends=(
|
|
r-arrow
|
|
r-bit64
|
|
r-blob
|
|
r-hms
|
|
r-rlang
|
|
r-testthat
|
|
r-tibble
|
|
r-vctrs
|
|
r-withr
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('7937fd861a963d997d34119d1debb469')
|
|
b2sums=('0810244661fa50e44f1fbca77bef733f52f4b841d7dfc04b1e1604ae05d35ac4d7702980f8e5ca776128c243acff5dac99dbc328d4d8b8d1f4ceae7723b9cfda')
|
|
|
|
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"
|
|
}
|