summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD13
2 files changed, 13 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2abd2880940..5a6ba63f1e3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = r-rprojroot
pkgdesc = Finding Files in Project Subdirectories
- pkgver = 2.0.2
+ pkgver = 2.0.3
pkgrel = 1
url = https://cran.r-project.org/package=rprojroot
arch = any
@@ -11,9 +11,9 @@ pkgbase = r-rprojroot
optdepends = r-lifecycle
optdepends = r-mockr
optdepends = r-rmarkdown
- optdepends = r-testthat
+ optdepends = r-testthat>=3.0.0
optdepends = r-withr
- source = https://cran.r-project.org/src/contrib/rprojroot_2.0.2.tar.gz
- sha256sums = 5fa161f0d4ac3b7a99dc6aa2d832251001dc92e93c828593a51fe90afd019e1f
+ source = https://cran.r-project.org/src/contrib/rprojroot_2.0.3.tar.gz
+ sha256sums = 50604247470e910cecfe9b76df754bf96a0d701f81b732f7aa9c90a20d30f897
pkgname = r-rprojroot
diff --git a/PKGBUILD b/PKGBUILD
index b155253df2b..b1cd4b9c1b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
+# Maintainer: peippo <christoph+aur@christophfink.com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
_cranname=rprojroot
-_cranver=2.0.2
+_cranver=2.0.3
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
@@ -10,9 +11,9 @@ arch=(any)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=('r>=3.0.0')
-optdepends=(r-covr r-knitr r-lifecycle r-mockr r-rmarkdown r-testthat r-withr)
+optdepends=(r-covr r-knitr r-lifecycle r-mockr r-rmarkdown "r-testthat>=3.0.0" r-withr)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
-sha256sums=('5fa161f0d4ac3b7a99dc6aa2d832251001dc92e93c828593a51fe90afd019e1f')
+sha256sums=("50604247470e910cecfe9b76df754bf96a0d701f81b732f7aa9c90a20d30f897")
build() {
R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
@@ -20,6 +21,10 @@ build() {
package() {
install -dm0755 "${pkgdir}/usr/lib/R/library"
-
cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
+
+ if [[ -f "${_cranname}/LICENSE" ]]; then
+ install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ fi
+
}