summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Gao2016-08-11 12:25:28 -0400
committerXiang Gao2016-08-11 12:25:28 -0400
commit0f21e1c204f9f16d719e62aff7439f0cdec4c633 (patch)
tree37c85bd73089e1db0239b3b8579fad037160fdcc
downloadaur-0f21e1c204f9f16d719e62aff7439f0cdec4c633.tar.gz
init version
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d888cf16448
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = r-rcpp
+ pkgdesc = seamless r and c++ integration
+ pkgver = 0.12.6
+ pkgrel = 1
+ url = http://www.rcpp.org, http://dirk.eddelbuettel.com/code/rcpp.html, https://github.com/RcppCore/Rcpp
+ arch = any
+ license = GPL
+ makedepends = curl
+ makedepends = grep
+ makedepends = python-html2text
+ depends = r>=3.0.0
+
+pkgname = r-rcpp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68f7f50971a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
+
+_pkgname=Rcpp
+_pkgnamelower=rcpp
+_repo='http://cran.stat.ucla.edu/'
+_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
+pkgname=r-$_pkgnamelower
+pkgver=0.12.6
+pkgrel=1
+pkgdesc='seamless r and c++ integration'
+arch=(any)
+url="http://www.rcpp.org, http://dirk.eddelbuettel.com/code/rcpp.html,
+https://github.com/RcppCore/Rcpp"
+license=('GPL')
+depends=('r>=3.0.0')
+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