diff options
author | Viktor Drobot | 2020-03-06 16:15:29 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-03-06 16:15:29 +0300 |
commit | 739bd46a08ba5507998a839995a7ddda3f8df963 (patch) | |
tree | 4618a133c6bfdd311e4c363876f07fb359b994cf | |
parent | b4424c4c59704e30138380bcdab23fe0d3a48c9b (diff) | |
download | aur-739bd46a08ba5507998a839995a7ddda3f8df963.tar.gz |
Update 1.3.2
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 18 insertions, 16 deletions
@@ -5,7 +5,7 @@ pkgbase = r-rprojroot url = https://cran.r-project.org/package=rprojroot arch = any license = GPL3 - depends = r + depends = r>=3.0.0 depends = r-backports optdepends = r-testthat optdepends = r-mockr @@ -1,26 +1,28 @@ -# Maintainer: Alex Branham <branham@utexas.edu> +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com + _cranname=rprojroot _cranver=1.3-2 -_pkgtar=${_cranname}_${_cranver}.tar.gz -pkgname=r-rprojroot +pkgname=r-${_cranname,,} pkgver=${_cranver//[:-]/.} pkgrel=1 pkgdesc="Finding Files in Project Subdirectories" -arch=('any') +arch=(any) url="https://cran.r-project.org/package=${_cranname}" -license=('GPL3') -depends=('r' 'r-backports') - -optdepends=('r-testthat' 'r-mockr' 'r-knitr' 'r-withr' 'r-rmarkdown') - -source=("https://cran.r-project.org/src/contrib/${_pkgtar}") +license=(GPL3) +depends=('r>=3.0.0' r-backports) +optdepends=(r-testthat r-mockr r-knitr r-withr r-rmarkdown) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") md5sums=('030a1d238d41ee1e5e21e55eba8403b2') -build(){ - R CMD INSTALL ${_pkgtar} -l $srcdir +build() { + cd "${srcdir}" + + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} } + package() { - install -d "$pkgdir/usr/lib/R/library" - cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library" -} + cd "${srcdir}" + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} |