diff options
author | Christoph Fink | 2023-03-26 18:57:13 +0300 |
---|---|---|
committer | Christoph Fink | 2023-03-26 18:57:13 +0300 |
commit | 9844c4f0060bbc054ef930168db731112e429406 (patch) | |
tree | 0e33fe9660af035f7efb757f79790d7e602e289d /PKGBUILD | |
parent | a1c80cf12c8d8fce56dce516de813c3ab0f5c130 (diff) | |
download | aur-r-farver.tar.gz |
upgpkg: r-farver 2.1.1-3
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 24 insertions, 10 deletions
@@ -6,7 +6,7 @@ _cranname=farver _cranver=2.1.1 pkgname=r-${_cranname,,} pkgver=${_cranver//[:-]/.} -pkgrel=2 +pkgrel=3 pkgdesc="High Performance Colour Space Manipulation" arch=(i686 x86_64) url="https://cran.r-project.org/package=${_cranname}" @@ -17,10 +17,25 @@ depends=( optdepends=( r-covr ) -checkdepends=( - "${optdepends[@]}" - "r-testthat>=3.0.0" -) + +# The unittests for `r-farver` 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-farver`. 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=("8aae9b293163faaefa87227286e8c49fc7432689338120a07ec00f6337828eaf5bcee2ef1ab2ceadfe1846546fe1397647d324c69a43735f3e595d3361bcc3b5") @@ -30,15 +45,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 |