diff options
author | Pekka Ristola | 2023-10-21 16:24:11 +0300 |
---|---|---|
committer | Pekka Ristola | 2023-10-21 16:24:11 +0300 |
commit | 61b60cfadea324dfe08f24f6582a74f1666efd13 (patch) | |
tree | b17295cd92dccc86f5259d341c3ef7a6e550baae | |
download | aur-61b60cfadea324dfe08f24f6582a74f1666efd13.tar.gz |
Version 2.1.1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6355cf68dca9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = r-harrypotter + pkgdesc = Palettes Generated from All "Harry Potter" Movies + pkgver = 2.1.1 + pkgrel = 1 + url = https://cran.r-project.org/package=harrypotter + arch = any + license = MIT + checkdepends = r-testthat + depends = r-ggplot2 + depends = r-gridextra + optdepends = r-hexbin + optdepends = r-testthat + source = https://cran.r-project.org/src/contrib/harrypotter_2.1.1.tar.gz + md5sums = f032c91d396ce69e965431316883473d + sha256sums = 192d1256ba770a66a6136647147ee822f249895543119980cb8c927b33d87ac8 + +pkgname = r-harrypotter diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ac114f18b218 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=harrypotter +_pkgver=2.1.1 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Palettes Generated from All \"Harry Potter\" Movies" +arch=(any) +url="https://cran.r-project.org/package=${_pkgname}" +license=(MIT) +depends=( + r-ggplot2 + r-gridextra +) +checkdepends=( + r-testthat +) +optdepends=( + r-hexbin + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('f032c91d396ce69e965431316883473d') +sha256sums=('192d1256ba770a66a6136647147ee822f249895543119980cb8c927b33d87ac8') + +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" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +} |