summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Gao2016-08-11 12:25:34 -0400
committerXiang Gao2016-08-11 12:25:34 -0400
commit17f59de2a2d4e8d46cabcabb8c37cbe9094d6397 (patch)
treed7e3b013079be927da8b84c842c742383e0bbc27
downloadaur-17f59de2a2d4e8d46cabcabb8c37cbe9094d6397.tar.gz
init version
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD29
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3fd9b182a7b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = r-roxygen2
+ pkgdesc = in-source documentation for r
+ pkgver = 5.0.1
+ pkgrel = 1
+ url = https://github.com/klutometis/roxygen
+ arch = any
+ license = GPL
+ makedepends = curl
+ makedepends = grep
+ makedepends = python-html2text
+ depends = r>=3.0.2
+ depends = r-stringr>=0.5
+ depends = r-stringi
+ depends = r-brew
+ depends = r-digest
+ depends = r-rcpp>= 0.11.0
+ depends = r-rcpp
+
+pkgname = r-roxygen2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bdbfd3f4e47
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
+
+_pkgname=roxygen2
+_pkgnamelower=roxygen2
+_repo='http://cran.stat.ucla.edu/'
+_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
+pkgname=r-$_pkgnamelower
+pkgver=5.0.1
+pkgrel=1
+pkgdesc='in-source documentation for r'
+arch=(any)
+url="https://github.com/klutometis/roxygen"
+license=('GPL')
+depends=('r>=3.0.2' 'r-stringr>=0.5' 'r-stringi' 'r-brew' 'r-digest' 'r-rcpp>=
+0.11.0' 'r-rcpp')
+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