summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Gao2016-08-11 12:23:59 -0400
committerXiang Gao2016-08-11 12:23:59 -0400
commitcdbbfc439165ff24bd3acc65e7d8c3bf46b0019d (patch)
treeaf1f8001894d1fcf87a372c7b7c65da4a7659b46
downloadaur-cdbbfc439165ff24bd3acc65e7d8c3bf46b0019d.tar.gz
init version
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5a0f887737d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = r-digest
+ pkgdesc = create compact hash digests of r objects
+ pkgver = 0.6.10
+ pkgrel = 1
+ url = http://dirk.eddelbuettel.com/code/digest.html
+ arch = any
+ license = GPL2
+ makedepends = curl
+ makedepends = grep
+ makedepends = python-html2text
+ depends = r>=2.4.1
+
+pkgname = r-digest
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ad291a28ffb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
+
+_pkgname=digest
+_pkgnamelower=digest
+_repo='http://cran.stat.ucla.edu/'
+_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
+pkgname=r-$_pkgnamelower
+pkgver=0.6.10
+pkgrel=1
+pkgdesc='create compact hash digests of r objects'
+arch=(any)
+url="http://dirk.eddelbuettel.com/code/digest.html"
+license=('GPL2')
+depends=('r>=2.4.1')
+makedepends=('curl' 'grep' 'python-html2text')
+
+pkgver() {
+ curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|grep -o '[0-9\.]*'
+}
+
+build() {
+ Rscript -e "install.packages(\"$_pkgname\", lib=\"$srcdir\", repos=\"$_repo\")"
+}
+
+package() {
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -r "$srcdir/$_pkgname" "$pkgdir/usr/lib/R/library"
+} \ No newline at end of file