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 /PKGBUILD | |
parent | 8f8ec893c2b7a5b5394d54a90cfa069a62245cc5 (diff) | |
download | aur-1b76047438b52b3fd4a071853bdcd9658862ef07.tar.gz |
Improve PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -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" } + |