summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Fink2021-10-22 10:52:29 +0300
committerChristoph Fink2021-10-22 10:52:29 +0300
commit232f5afb2765f1987ef510370d2a636486aab94a (patch)
tree78402f21393415892a869b58512d42dbb7798c49
downloadaur-r-geometries.tar.gz
r-geometries
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f143eb5d91e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = r-geometries
+ pkgdesc = Convert Between R Objects and Geometric Structures
+ pkgver = 0.2.0
+ pkgrel = 1
+ url = https://cran.r-project.org/package=geometries
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = r
+ depends = r-rcpp
+ optdepends = r-covr
+ optdepends = r-knitr
+ optdepends = r-rmarkdown
+ optdepends = r-tinytest
+ source = https://cran.r-project.org/src/contrib/geometries_0.2.0.tar.gz
+ md5sums = efeccd6972b857d760e3985583c6ad15
+
+pkgname = r-geometries
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4cdfa0292ff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: peippo <christoph+aur@christophfink.com>
+
+_cranname=geometries
+_cranver=0.2.0
+pkgname=r-${_cranname,,}
+pkgdesc="Convert Between R Objects and Geometric Structures"
+url="https://cran.r-project.org/package=geometries"
+license=("MIT")
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+
+arch=("i686" "x86_64")
+depends=("r" "r-rcpp")
+optdepends=("r-covr" "r-knitr" "r-rmarkdown" "r-tinytest")
+makedepends=()
+
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=("efeccd6972b857d760e3985583c6ad15")
+
+build() {
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
+}
+
+package() {
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+ cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
+
+ if [[ -f "${_cranname}/LICENSE" ]]; then
+ install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ fi
+}