summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-12-13 14:42:58 +0300
committerViktor Drobot2020-12-13 14:42:58 +0300
commitc5e175ca782de379d8a72a353614c4e22f558969 (patch)
tree6dfced74b194b496fcc6f0ff14694576f9c9a053
downloadaur-c5e175ca782de379d8a72a353614c4e22f558969.tar.gz
Initial release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD25
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..552cacc0168
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = r-rappdirs
+ pkgdesc = Application Directories: Determine Where to Save Data, Caches, and Logs
+ pkgver = 0.3.1
+ pkgrel = 1
+ url = https://cran.r-project.org/package=rappdirs
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = r>=2.14
+ optdepends = r-testthat
+ optdepends = r-roxygen2
+ source = https://cran.r-project.org/src/contrib/rappdirs_0.3.1.tar.gz
+ sha256sums = 2fd891ec16d28862f65bb57e4a78f77a597930abb59380e757afd8b6c6d3264a
+
+pkgname = r-rappdirs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..89de5f3d706
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+_cranname=rappdirs
+_cranver=0.3.1
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Application Directories: Determine Where to Save Data, Caches, and Logs"
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(MIT)
+depends=('r>=2.14')
+optdepends=(r-testthat r-roxygen2)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+sha256sums=('2fd891ec16d28862f65bb57e4a78f77a597930abb59380e757afd8b6c6d3264a')
+
+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"
+}