mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
|
|
|
|
_pkgname=later
|
|
_pkgver=1.4.1
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=0
|
|
pkgdesc="Utilities for Scheduling Functions to Execute Later with Event Loops"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('MIT')
|
|
depends=(
|
|
r-rcpp
|
|
r-rlang
|
|
)
|
|
checkdepends=(
|
|
r-testthat
|
|
)
|
|
optdepends=(
|
|
r-knitr
|
|
r-nanonext
|
|
r-r6
|
|
r-rmarkdown
|
|
r-testthat
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('34689763fedb5bac8012cfc54de32813')
|
|
b2sums=('aa8ae5350e0b5232ab409a9e1324765e0bfb54aebab285acd5477b24ea6e88cff454c6f276bf801a230b92174a4e6e374d792446497b19bf6e752503a71e8d89')
|
|
|
|
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"
|
|
}
|