Packages/BioArchLinux/r-matrixstats/PKGBUILD

36 lines
909 B
Bash

# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=matrixStats
_pkgver=1.3.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Functions that Apply to Rows and Columns of Matrices (and to Vectors)"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('Artistic-2.0')
depends=(
r
)
optdepends=(
r-base64enc
r-ggplot2
r-knitr
r-markdown
r-microbenchmark
r-r.devices
r-r.rsp
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('f26a029c24c5ec31e1511a22aefbde9e')
b2sums=('79aaa70c60d1965c979c7e482d1fefc504a61516a20f26497088b7e59efa8a95a51243e4c91b474f0334860dc5e48d324705b608e65ff9657a3aee6bc1dabcc3')
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"
}