diff options
author | BioArchLinuxBot | 2023-06-07 18:01:02 +0000 |
---|---|---|
committer | BioArchLinuxBot | 2023-06-07 18:01:02 +0000 |
commit | 360ed30f3daedc4ce407deeff599a04b4e7ab9bf (patch) | |
tree | 98b4f69cdce0f394224d93f0a2e0d0a60af00632 | |
parent | b1b1e7ca529e3d8149329eec0fab744249bace4e (diff) | |
download | aur-360ed30f3daedc4ce407deeff599a04b4e7ab9bf.tar.gz |
[lilac] updated to 0.13-3
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 23 insertions, 17 deletions
@@ -1,14 +1,15 @@ pkgbase = r-testit pkgdesc = A Simple Package for Testing R Packages pkgver = 0.13 - pkgrel = 2 + pkgrel = 3 url = https://cran.r-project.org/package=testit arch = any license = GPL3 depends = r - optdepends = r-rstudioapi optdepends = r-covr + optdepends = r-rstudioapi source = https://cran.r-project.org/src/contrib/testit_0.13.tar.gz + md5sums = ff82b0f377fc9d6fb769de1dcc2b887e sha256sums = 90d47168ab6bdbd1274b600b457626ac07697ce09792c92b2043be5f5b678d80 pkgname = r-testit @@ -3,32 +3,37 @@ # Contributor: Kibouo <csonka.mihaly@hotmail.com> # Contributor: Alex Branham <branham@utexas.edu> -_cranname=testit -_cranver=0.13 -pkgname=r-${_cranname,,} -pkgver=${_cranver//[:-]/.} -pkgrel=2 +_pkgname=testit +_pkgver=0.13 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//[:-]/.} +pkgrel=3 pkgdesc="A Simple Package for Testing R Packages" arch=(any) -url="https://cran.r-project.org/package=${_cranname}" +url="https://cran.r-project.org/package=${_pkgname}" license=(GPL3) -depends=(r) -optdepends=(r-rstudioapi r-covr) -source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +depends=( + r +) +optdepends=( + r-covr + r-rstudioapi +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('ff82b0f377fc9d6fb769de1dcc2b887e') sha256sums=('90d47168ab6bdbd1274b600b457626ac07697ce09792c92b2043be5f5b678d80') build() { mkdir -p build - R CMD INSTALL "${_cranname}" -l "${srcdir}/build" + R CMD INSTALL "$_pkgname" -l build } check() { - cd "${_cranname}/tests" - R_LIBS="${srcdir}/build" _R_CHECK_PACKAGE_NAME_=false Rscript --vanilla test-all.R + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" _R_CHECK_PACKAGE_NAME_=false Rscript --vanilla test-all.R } package() { - install -dm0755 "${pkgdir}/usr/lib/R/library" - - cp -a --no-preserve=ownership "build/${_cranname}" "${pkgdir}/usr/lib/R/library" + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" } |