diff options
author | Pekka Ristola | 2022-02-19 20:45:34 +0200 |
---|---|---|
committer | Pekka Ristola | 2022-02-19 20:45:34 +0200 |
commit | 7e53e27b90d993f6f744928d2cafdfd12347ab38 (patch) | |
tree | 38c7134457d4ad573e42c6e5bc81e23320ddf0cd | |
download | aur-7e53e27b90d993f6f744928d2cafdfd12347ab38.tar.gz |
Version 1.0.2
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 60 |
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e0f87e3786d7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = r-vdiffr + pkgdesc = Visual Regression Testing and Graphical Diffing + pkgver = 1.0.2 + pkgrel = 1 + url = https://cran.r-project.org/package=vdiffr + arch = i686 + arch = x86_64 + license = MIT + checkdepends = r-ggplot2 + depends = r-diffobj + depends = r-glue + depends = r-htmltools + depends = r-lifecycle + depends = r-rlang + depends = r-testthat + depends = r-xml2 + depends = r-cpp11 + optdepends = r-covr + optdepends = r-ggplot2 + optdepends = r-roxygen2 + optdepends = r-withr + source = https://cran.r-project.org/src/contrib/vdiffr_1.0.2.tar.gz + source = skip_tests.patch::https://github.com/r-lib/vdiffr/commit/630a29d013361fd63fea242f531e2db6aef37919.patch + source = CRAN-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT + sha256sums = 7d786abad827eacab9f308e0059cd7ff98176c2e332a213b3bdd624c11975cfe + sha256sums = 66c843887b82cc78edd9300ef38140b19924a29c77e736897bef7520a5bb0d2f + sha256sums = e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b + +pkgname = r-vdiffr diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e1ccde5bd08 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_cranname=vdiffr +_cranver=1.0.2 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Visual Regression Testing and Graphical Diffing" +arch=(i686 x86_64) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=( + r-diffobj + r-glue + r-htmltools + r-lifecycle + r-rlang + r-testthat + r-xml2 + r-cpp11 +) +checkdepends=(r-ggplot2) +optdepends=( + r-covr + r-ggplot2 + r-roxygen2 + r-withr +) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz" + "skip_tests.patch::https://github.com/r-lib/vdiffr/commit/630a29d013361fd63fea242f531e2db6aef37919.patch" + "CRAN-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT") +sha256sums=('7d786abad827eacab9f308e0059cd7ff98176c2e332a213b3bdd624c11975cfe' + '66c843887b82cc78edd9300ef38140b19924a29c77e736897bef7520a5bb0d2f' + 'e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b') + +prepare() { + cd "${_cranname}" + + # revert a commit that disables all tests + patch -Rp1 -i "${srcdir}/skip_tests.patch" +} + +build() { + mkdir -p build + R CMD INSTALL "${_cranname}" -l "${srcdir}/build" +} + +check() { + cd "${_cranname}/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 -Dm644 CRAN-MIT-TEMPLATE "${pkgdir}/usr/share/licenses/${pkgname}/MIT" + install -Dm644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |