diff options
author | Pekka Ristola | 2023-11-24 22:38:40 +0200 |
---|---|---|
committer | Pekka Ristola | 2023-11-24 22:38:40 +0200 |
commit | 4f04861986d313a08e989553a023a3c26cc0ce40 (patch) | |
tree | 22786a4348bd1655f4f25f9619ac67eb7bfbb9d6 | |
parent | 64e3c5c9fb988a36ab5851ba7615440ecc03fe30 (diff) | |
download | aur-4f04861986d313a08e989553a023a3c26cc0ce40.tar.gz |
Update to 2.7
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 50 insertions, 23 deletions
@@ -1,15 +1,18 @@ -# Generated by mksrcinfo v8 -# Thu Dec 13 19:02:36 UTC 2018 pkgbase = r-animation - pkgdesc = Provides functions for animations in statistics - pkgver = 2.6 + pkgdesc = A Gallery of Animations in Statistics and Utilities to Create Animations + pkgver = 2.7 pkgrel = 1 - url = http://cran.r-project.org/web/packages/animation/index.html + url = https://cran.r-project.org/package=animation arch = any - license = GPL3 + license = GPL + checkdepends = r-testit depends = r-magick - source = http://cran.r-project.org/src/contrib/animation_2.6.tar.gz - md5sums = 8f134dc582376d6e0bd47690a001d2b5 + optdepends = ffmpeg: saveVideo() + optdepends = swftools: saveSWF() + optdepends = texlive-bin: saveLatex() + optdepends = r-testit + source = https://cran.r-project.org/src/contrib/animation_2.7.tar.gz + md5sums = 57e4bbd7c116ac0e6077eb613aa5ecf4 + sha256sums = 88418f1b04ec785963bad492f30eb48b05914e9e5d88c7eef705d949cbd7e469 pkgname = r-animation - @@ -1,17 +1,41 @@ -_cranname=animation -pkgname=r-$_cranname -pkgver=2.6 +# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com> + +_pkgname=animation +_pkgver=2.7 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} pkgrel=1 -pkgdesc="Provides functions for animations in statistics" -url="http://cran.r-project.org/web/packages/${_cranname}/index.html" -arch=('any') -depends=('r-magick') -license=('GPL3') -source=("http://cran.r-project.org/src/contrib/${_cranname}_${pkgver}.tar.gz") -md5sums=('8f134dc582376d6e0bd47690a001d2b5') - +pkgdesc="A Gallery of Animations in Statistics and Utilities to Create Animations" +arch=(any) +url="https://cran.r-project.org/package=${_pkgname}" +license=(GPL) +depends=( + r-magick +) +checkdepends=( + r-testit +) +optdepends=( + 'ffmpeg: saveVideo()' + 'swftools: saveSWF()' + 'texlive-bin: saveLatex()' + r-testit +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('57e4bbd7c116ac0e6077eb613aa5ecf4') +sha256sums=('88418f1b04ec785963bad492f30eb48b05914e9e5d88c7eef705d949cbd7e469') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" _R_CHECK_PACKAGE_NAME_=false Rscript --vanilla run-all.R +} + package() { - mkdir -p ${pkgdir}/usr/lib/R/library - cd ${srcdir} - R CMD INSTALL ${_cranname} -l ${pkgdir}/usr/lib/R/library + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" } |