diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 34 insertions, 19 deletions
@@ -2,11 +2,19 @@ pkgbase = r-matrixstats pkgdesc = Functions that Apply to Rows and Columns of Matrices (and to Vectors) pkgver = 0.55.0 pkgrel = 1 - url = https://CRAN.R-project.org/package=matrixStats + url = https://cran.r-project.org/package=matrixStats + arch = i686 arch = x86_64 - license = GPL3 - depends = r - source = http://cran.r-project.org/src/contrib/matrixStats_0.55.0.tar.gz + license = Artistic-2.0 + makedepends = gcc + depends = r>=2.12.0 + optdepends = r-base64enc + optdepends = r-ggplot2 + optdepends = r-knitr + optdepends = r-microbenchmark + optdepends = r-r.devices + optdepends = r-r.rsp + source = https://cran.r-project.org/src/contrib/matrixStats_0.55.0.tar.gz md5sums = 860aa7af56ddb598268cbca7921e2d4c pkgname = r-matrixstats diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6ae0b18a1f6c..000000000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/pkg -/src -*.tar.gz -*.tar.xz @@ -1,19 +1,30 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Grey Christoforo <first name at last name dot net> -pkgname=r-matrixstats -_cran_name=matrixStats -pkgver=0.55.0 + +_cranname=matrixStats +_cranver=0.55.0 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} 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=${_cran_name}" -license=('GPL3') -depends=('r') -source=("http://cran.r-project.org/src/contrib/${_cran_name}_${pkgver}.tar.gz") +arch=(i686 x86_64) +url="https://cran.r-project.org/package=${_cranname}" +license=(Artistic-2.0) +depends=('r>=2.12.0') +makedepends=(gcc) +optdepends=(r-base64enc r-ggplot2 r-knitr r-microbenchmark r-r.devices r-r.rsp) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") md5sums=('860aa7af56ddb598268cbca7921e2d4c') +build() { + cd "${srcdir}" + + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} +} + package() { - mkdir -p $pkgdir/usr/lib/R/library - cd $srcdir + cd "${srcdir}" - R CMD INSTALL -l $pkgdir/usr/lib/R/library ./${_cran_name} + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" } |