diff options
author | Alex Branham | 2018-05-29 10:46:12 -0500 |
---|---|---|
committer | Alex Branham | 2018-05-29 10:46:12 -0500 |
commit | 1b76047438b52b3fd4a071853bdcd9658862ef07 (patch) | |
tree | 41ac6faa7851bf1aa6023411a5b521da84a08ed0 | |
parent | 8f8ec893c2b7a5b5394d54a90cfa069a62245cc5 (diff) | |
download | aur-1b76047438b52b3fd4a071853bdcd9658862ef07.tar.gz |
Improve PKGBUILD
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 28 insertions, 21 deletions
@@ -1,14 +1,15 @@ pkgbase = r-rcppeigen -pkgdesc = R and 'Eigen' integration using 'Rcpp'. -pkgver = 0.3.3.4.0 -pkgrel = 2 -url = https://cran.r-project.org/web/packages/RcppEigen/index.html -arch = x86_64 -license = GPL -depends = r -depends = r-cran-rcpp -source = https://cran.r-project.org/src/contrib/RcppEigen_0.3.3.4.0.tar.gz -md5sums = 78ee1ef7c6043efa875434ae5fcea2ec + pkgdesc = R and Eigen integration using Rcpp + pkgver = 0.3.3.4.0 + pkgrel = 1 + url = https://cran.r-project.org/web/packages/RcppEigen/index.html + arch = any + license = GPL (>= 2) | file LICENSE + depends = r + optdepends = r-inline + optdepends = r-pkgkitten + source = https://cran.r-project.org/src/contrib/RcppEigen_0.3.3.4.0.tar.gz + md5sums = 78ee1ef7c6043efa875434ae5fcea2ec pkgname = r-rcppeigen @@ -1,20 +1,26 @@ # Maintainer: Alex Branham <branham@utexas.edu> _cranname=RcppEigen _cranver=0.3.3.4.0 +_pkgtar=${_cranname}_${_cranver}.tar.gz pkgname=r-rcppeigen pkgver=${_cranver//[:-]/.} -pkgrel=2 -pkgdesc="R and 'Eigen' integration using 'Rcpp'. " +pkgrel=1 +pkgdesc="R and Eigen integration using Rcpp" +arch=('any') url="https://cran.r-project.org/web/packages/${_cranname}/index.html" -arch=('x86_64') -license=('GPL') -depends=('r' - 'r-cran-rcpp') -# optdepends=('r-inline' 'r-pkgkitten') -source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +license=('GPL (>= 2) | file LICENSE') +depends=('r' ) + +optdepends=('r-inline' 'r-pkgkitten') + +source=("https://cran.r-project.org/src/contrib/${_pkgtar}") md5sums=('78ee1ef7c6043efa875434ae5fcea2ec') + +build(){ + R CMD INSTALL ${_pkgtar} -l $srcdir +} package() { - mkdir -p ${pkgdir}/usr/lib/R/library - cd "${srcdir}" - R CMD INSTALL ${_cranname} -l ${pkgdir}/usr/lib/R/library + install -d "$pkgdir/usr/lib/R/library" + cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library" } + |