mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
42 lines
1.2 KiB
Bash
42 lines
1.2 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
|
|
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
|
|
# Contributor: Ward Segers <w@rdsegers.be>
|
|
# Contributor: Alex Branham <alex.branham@gmail.com>
|
|
|
|
_pkgname=evaluate
|
|
_pkgver=0.23
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Parsing and Evaluation Tools that Provide More Details than the Default"
|
|
arch=(any)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('MIT')
|
|
depends=(
|
|
r
|
|
)
|
|
optdepends=(
|
|
r-covr
|
|
r-ggplot2
|
|
r-rlang
|
|
r-testthat
|
|
r-withr
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('f95f31851168165421c128109668a213')
|
|
b2sums=('c84b36bbc37f8fa0799d2e68eb55b393d520121c00960a80e4e77b7ff805dc96c33e003e8e0531287e3f821a35e0424685b31510825caa6807878b57e7333e38')
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname"
|
|
}
|
|
|
|
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"
|
|
}
|