diff options
author | Pekka Ristola | 2023-09-15 17:32:27 +0300 |
---|---|---|
committer | Pekka Ristola | 2023-09-15 17:32:27 +0300 |
commit | a11f148893e96afee250005a29fe92662718f435 (patch) | |
tree | 0b81caa66dcec0578f8489a8135d81808c5b159c | |
download | aur-a11f148893e96afee250005a29fe92662718f435.tar.gz |
Version 2.1.0
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2880fa1ab749 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = r-readods + pkgdesc = Read and Write ODS Files + pkgver = 2.1.0 + pkgrel = 1 + url = https://cran.r-project.org/package=readODS + arch = x86_64 + license = GPL3 + checkdepends = r-testthat + makedepends = r-cpp11 + depends = r-cellranger + depends = r-readr + depends = r-stringi + depends = r-tibble + depends = r-vctrs + depends = r-zip + optdepends = r-covr + optdepends = r-knitr + optdepends = r-rmarkdown + optdepends = r-spelling + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/readODS_2.1.0.tar.gz + md5sums = ebde6b50a9c615a5b3fb3217361d33d7 + sha256sums = 3f3e557ac7cadeda4759c51f866ce9a942cb21a2b3dd24e55a082fc7d300d7fe + +pkgname = r-readods diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9d00c135467c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=readODS +_pkgver=2.1.0 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Read and Write ODS Files" +arch=(x86_64) +url="https://cran.r-project.org/package=${_pkgname}" +license=(GPL3) +depends=( + r-cellranger + r-readr + r-stringi + r-tibble + r-vctrs + r-zip +) +makedepends=( + r-cpp11 +) +checkdepends=( + r-testthat +) +optdepends=( + r-covr + r-knitr + r-rmarkdown + r-spelling + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('ebde6b50a9c615a5b3fb3217361d33d7') +sha256sums=('3f3e557ac7cadeda4759c51f866ce9a942cb21a2b3dd24e55a082fc7d300d7fe') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R +} + +package() { + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" +} |