summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Gao2016-08-11 12:25:58 -0400
committerXiang Gao2016-08-11 12:25:58 -0400
commit8158a66c33117ed383a531a4c65bc7369dbff091 (patch)
tree85e77327620db882ad9b2cee02e54ac34fd94e85
downloadaur-8158a66c33117ed383a531a4c65bc7369dbff091.tar.gz
init version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD28
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd280629c11
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = r-testthat
+ pkgdesc = unit testing for r
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://github.com/hadley/testthat
+ arch = any
+ license = MIT
+ makedepends = curl
+ makedepends = grep
+ makedepends = python-html2text
+ depends = r>=3.1.0
+ depends = r-digest
+ depends = r-crayon
+ depends = r-praise
+ depends = r-magrittr
+ depends = r-r6
+
+pkgname = r-testthat
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b0259e29f2c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran
+
+_pkgname=testthat
+_pkgnamelower=testthat
+_repo='http://cran.stat.ucla.edu/'
+_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
+pkgname=r-$_pkgnamelower
+pkgver=1.0.2
+pkgrel=1
+pkgdesc='unit testing for r'
+arch=(any)
+url="https://github.com/hadley/testthat"
+license=('MIT')
+depends=('r>=3.1.0' 'r-digest' 'r-crayon' 'r-praise' 'r-magrittr' 'r-r6')
+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