mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
61 lines
1.5 KiB
Bash
61 lines
1.5 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: Alex Branham <branham@utexas.edu>
|
|
|
|
_pkgname=xfun
|
|
_pkgver=0.43
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Supporting Functions for Packages Maintained by 'Yihui Xie'"
|
|
arch=(x86_64)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('MIT')
|
|
depends=(
|
|
r
|
|
)
|
|
checkdepends=(
|
|
r-testit
|
|
)
|
|
optdepends=(
|
|
r-curl
|
|
r-htmltools
|
|
r-jsonlite
|
|
r-knitr
|
|
r-magick
|
|
r-markdown
|
|
r-mime
|
|
r-pak
|
|
r-remotes
|
|
r-renv
|
|
r-rhub
|
|
r-rmarkdown
|
|
r-rstudioapi
|
|
r-testit
|
|
r-tinytex
|
|
r-xml2
|
|
r-yaml
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('c2e6667f325c61266d8d6ff204e52a6e')
|
|
b2sums=('8222379f447a7956f4cf1d4a72f69865d456da1ab4821331ce1eff6ec4c9d2ff96663acfd1a366718d36fe3ec2a85630b061eae2432559a13deba995f076bddf')
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname"
|
|
}
|
|
|
|
check() {
|
|
cd "$_pkgname/tests"
|
|
R_LIBS="$srcdir/build" _R_CHECK_PACKAGE_NAME_=false Rscript --vanilla test-cran.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"
|
|
}
|