diff options
author | BioArchLinuxBot | 2023-06-29 22:59:19 +0000 |
---|---|---|
committer | BioArchLinuxBot | 2023-06-29 22:59:19 +0000 |
commit | b3ea8dec6d9104fbdf4e481d67c262b783d65e2f (patch) | |
tree | 12bc824d06363b86c13ab582d77101637854785d /PKGBUILD | |
parent | c55339bb6b4ea07fe430fedbd6f371c81abbd75e (diff) | |
download | aur-b3ea8dec6d9104fbdf4e481d67c262b783d65e2f.tar.gz |
[lilac] updated to 1.9.2-3
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 29 insertions, 26 deletions
@@ -1,50 +1,53 @@ # Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> +# Contributor: Guoyi Zhang <guoyizhang at malacology dot net> # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Clint Valentine <valentine.clint@gmail.com> # Contributor: wagnerflo <florian@wagner-flo.net> -_cranname=lubridate -_cranver=1.9.2 -pkgname=r-${_cranname,,} -pkgver=${_cranver//[:-]/.} -pkgrel=1 +_pkgname=lubridate +_pkgver=1.9.2 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=3 pkgdesc="Make Dealing with Dates a Little Easier" -arch=(i686 x86_64) -url="https://cran.r-project.org/package=${_cranname}" +arch=(x86_64) +url="https://cran.r-project.org/package=${_pkgname}" license=(GPL) -depends=(r-timechange r-generics) -checkdepends=(r-testthat) +depends=( + r-generics + r-timechange +) +checkdepends=( + r-testthat +) optdepends=( - r-covr - r-knitr - r-testthat - r-vctrs - r-rmarkdown + r-covr + r-knitr + r-rmarkdown + r-testthat + r-vctrs ) -source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('625d6478985cfeb135546b1321e046d5') sha256sums=('8976431a4affe989261cbaa5e09cd44bb42a3b16eed59a42c1698da34c6544a7') prepare() { - cd "${_cranname}" - # skip test that requires a French locale - sed -i '/"parsing months with dots works in French linux locale"/a skip("Requires a French locale")' \ - tests/testthat/test-parsers.R + sed -i '/"parsing months with dots works in French linux locale"/a\ \ skip("Requires a French locale")' \ + "$_pkgname/tests/testthat/test-parsers.R" } 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" NOT_CRAN=true Rscript --vanilla testthat.R + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.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" } - |