mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
|
|
# Contributor: anzi2001 <anzi2001 at gmail dot com>
|
|
# Contributor: haha662 <haha662 at outlook dot com>
|
|
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
|
|
# Contributor: Alex Branham <branham@utexas.edu>
|
|
|
|
_pkgname=tinytex
|
|
_pkgver=0.48
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents"
|
|
arch=(any)
|
|
url="https://cran.r-project.org/package=${_pkgname}"
|
|
license=(MIT)
|
|
depends=(
|
|
r-xfun
|
|
)
|
|
checkdepends=(
|
|
r-testit
|
|
)
|
|
optdepends=(
|
|
r-rstudioapi
|
|
r-testit
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('765592507ff411f8572927c2acb7b249')
|
|
sha256sums=('1d0b989fa781a50a560b8d785f20c28bffc63b5b2e0fcd937c57fdd61d597695')
|
|
|
|
build() {
|
|
mkdir -p build
|
|
R CMD INSTALL "$_pkgname" -l build
|
|
}
|
|
|
|
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"
|
|
}
|