summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Ristola2022-02-28 15:02:44 +0200
committerPekka Ristola2022-02-28 15:02:44 +0200
commit7cfba485f82e4014b9d7f692c8fce44176f7e895 (patch)
tree45774743b0beb4930a5854cf744f5d197333308d
downloadaur-7cfba485f82e4014b9d7f692c8fce44176f7e895.tar.gz
Version 1.0.2
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e46d37eab8e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = r-tweenr
+ pkgdesc = Interpolate Data for Smooth Animations
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://cran.r-project.org/package=tweenr
+ arch = i686
+ arch = x86_64
+ license = MIT
+ checkdepends = r-testthat
+ depends = r-rcpp
+ depends = r-farver
+ depends = r-magrittr
+ depends = r-rlang
+ optdepends = r-testthat
+ optdepends = r-covr
+ source = https://cran.r-project.org/src/contrib/tweenr_1.0.2.tar.gz
+ source = CRAN-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT
+ sha256sums = 1805f575da6705ca4e5ec1c4605222fc826ba806d9ff9af41770294fe08ff69f
+ sha256sums = e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b
+
+pkgname = r-tweenr
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4bc0b1ad7a0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
+
+_cranname=tweenr
+_cranver=1.0.2
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Interpolate Data for Smooth Animations"
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(MIT)
+depends=(
+ r-rcpp
+ r-farver
+ r-magrittr
+ r-rlang
+)
+checkdepends=(r-testthat)
+optdepends=(r-testthat r-covr)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz"
+ "CRAN-MIT-TEMPLATE::https://cran.r-project.org/web/licenses/MIT")
+sha256sums=('1805f575da6705ca4e5ec1c4605222fc826ba806d9ff9af41770294fe08ff69f'
+ 'e76e4aad5d3d9d606db6f8c460311b6424ebadfce13f5322e9bae9d49cc6090b')
+
+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"
+}