summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-06 16:15:29 +0300
committerViktor Drobot2020-03-06 16:15:29 +0300
commit739bd46a08ba5507998a839995a7ddda3f8df963 (patch)
tree4618a133c6bfdd311e4c363876f07fb359b994cf
parentb4424c4c59704e30138380bcdab23fe0d3a48c9b (diff)
downloadaur-739bd46a08ba5507998a839995a7ddda3f8df963.tar.gz
Update 1.3.2
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD32
2 files changed, 18 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8210fe942c5..80cf4445c2d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 0cd68504c2f..b6afb33a50e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
+}