diff options
author | Christoph Fink | 2023-03-26 19:02:21 +0300 |
---|---|---|
committer | Christoph Fink | 2023-03-26 19:02:21 +0300 |
commit | 41819ef9a237aeff08f1632da8fa21cefe89180c (patch) | |
tree | 62b21d7199b9a5ffc1bc1d2bcc5ccb2861fa18f4 | |
parent | 4d22fad4c1599fb866da63dabde240196acd67a1 (diff) | |
download | aur-41819ef9a237aeff08f1632da8fa21cefe89180c.tar.gz |
upgpkg: r-rprojroot 2.0.3-3
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 25 insertions, 17 deletions
@@ -1,17 +1,10 @@ pkgbase = r-rprojroot pkgdesc = Find Files in Project Subdirectories pkgver = 2.0.3 - pkgrel = 2 + pkgrel = 3 url = https://cran.r-project.org/package=rprojroot arch = any license = MIT - checkdepends = r-covr - checkdepends = r-knitr - checkdepends = r-lifecycle - checkdepends = r-mockr - checkdepends = r-rmarkdown - checkdepends = r-withr - checkdepends = r-testthat depends = r>=3.0.0 optdepends = r-covr optdepends = r-knitr @@ -8,7 +8,7 @@ pkgdesc="Find Files in Project Subdirectories" url="https://cran.r-project.org/package=${_cranname}" license=("MIT") pkgver=${_cranver//[:-]/.} -pkgrel=2 +pkgrel=3 arch=("any") depends=( @@ -22,10 +22,25 @@ optdepends=( "r-rmarkdown" "r-withr" ) -checkdepends=( - "${optdepends[@]}" - "r-testthat" -) + +# The unittests for `r-rprojroot` have multiple circular +# dependency chains. + +# As such, the tests can not be run on first build. +# While R packages from CRAN, generally, are well-tested +# before they are released, in some situations, you want to +# have thorough testing on your own end. + +# To run the tests, first build this package without `check()` +# (i.e., as-is) to bootstrap `r-rprojroot`. Then, on subsequent builds, +# (assumining you have a local repository that is accessible from +# the build chroot), uncomment the lines defining `checkdepends`, below, +# as well as the `check()` function further down + +# checkdepends=( +# "${optdepends[@]}" +# "r-testthat" +# ) source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") b2sums=("ccb1d8f06ada72aa666e7f81cfdf5ce77596fce543c525c80f6eb91a5239c78d42aa16f192d900f9a90fc98d8c283af1ec2eada755a2dff9147bcd03002ceca3") @@ -35,14 +50,14 @@ build() { R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build/" } -check() { - R_LIBS="build/" R CMD check --no-manual --as-cran "${_cranname}" -} +# check() { +# export R_LIBS="build/" +# R CMD check --no-manual "${_cranname}" +# } package() { install -dm0755 "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "${srcdir}/build/${_cranname}" "${pkgdir}/usr/lib/R/library" - if [[ -f "${_cranname}/LICENSE" ]]; then install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" fi |