mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
43 lines
1,015 B
Bash
43 lines
1,015 B
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
|
|
_pkgname=prismatic
|
|
_pkgver=1.1.1
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=2
|
|
pkgdesc="Color Manipulation Tools"
|
|
arch=(any)
|
|
url="https://cran.r-project.org/package=${_pkgname}"
|
|
license=(MIT)
|
|
depends=(
|
|
r-farver
|
|
)
|
|
checkdepends=(
|
|
r-testthat
|
|
)
|
|
optdepends=(
|
|
r-covr
|
|
r-crayon
|
|
r-testthat
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('9b1eb9811f9c3a938f854e5a41c5f60b')
|
|
sha256sums=('494978ef03c7b2a1c26693eaaa164ad4286199dce167b7fffa42234b70057104')
|
|
|
|
build() {
|
|
mkdir -p build
|
|
R CMD INSTALL "$_pkgname" -l build
|
|
}
|
|
|
|
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"
|
|
}
|