diff options
author | Christoph Fink | 2023-03-26 19:04:15 +0300 |
---|---|---|
committer | Christoph Fink | 2023-03-26 19:04:15 +0300 |
commit | 97c12b4f93f1d5ec57bb2508a61162655a8ca5a0 (patch) | |
tree | c9762703105b912250c1816a77d63248af981377 /PKGBUILD | |
parent | cc80b4be74d336cf8cb007c9f84024742e50b524 (diff) | |
download | aur-97c12b4f93f1d5ec57bb2508a61162655a8ca5a0.tar.gz |
upgpkg: r-wk 0.7.2-7
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 24 insertions, 10 deletions
@@ -7,7 +7,7 @@ pkgdesc="Lightweight Well-Known Geometry Parsing" url="https://cran.r-project.org/package=${_cranname}" license=("MIT") pkgver=${_cranver//[:-]/.} -pkgrel=6 +pkgrel=7 arch=("i686" "x86_64") depends=( @@ -20,10 +20,25 @@ optdepends=( "r-tibble" "r-vctrs>=0.3.0" ) -checkdepends=( - "${optdepends[@]}" - "r-testthat>=3.0.0" -) + +# The unittests for `r-wk` 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-wk`. 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>=3.0.0" +# ) source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") b2sums=("27a66b2b587491152832f2baf64521db8c051c57860087a38df7835bacdb1691b60ac69ec992abf2d77943d7c03babd45511dea2ef939837058775ae85889d78") @@ -33,15 +48,14 @@ build() { R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build/" } -check() { - cd "${srcdir}/${_cranname}/tests" - R_LIBS="${srcdir}/build/" Rscript --vanilla testthat.R -} +# 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 |