summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-05-30 09:07:40 -0500
committerAlex Branham2018-05-30 09:07:40 -0500
commitad404b4a4dd46e1c61ea0d8710f49217b73c18e8 (patch)
tree7b0067112881ec4399d1ca2fa3f7198fc19d85ee
downloadaur-ad404b4a4dd46e1c61ea0d8710f49217b73c18e8.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD26
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2bd260f5700
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = r-callr
+ pkgdesc = Call R from R
+ pkgver = 2.0.4
+ pkgrel = 1
+ url = https://cran.r-project.org/web/packages/callr/index.html
+ arch = any
+ license = MIT
+ depends = r
+ depends = r-processx
+ optdepends = r-covr
+ optdepends = r-testthat
+ optdepends = r-withr
+ source = https://cran.r-project.org/src/contrib/callr_2.0.4.tar.gz
+ md5sums = 14d542a7a422c9449beece9c82db3ade
+
+pkgname = r-callr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e807ad7599f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Alex Branham <branham@utexas.edu>
+_cranname=callr
+_cranver=2.0.4
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-callr
+pkgver=${_cranver//[:-]/.}
+pkgrel=1
+pkgdesc="Call R from R"
+arch=('any')
+url="https://cran.r-project.org/web/packages/${_cranname}/index.html"
+license=('MIT')
+depends=('r' 'r-processx')
+
+optdepends=('r-covr' 'r-testthat' 'r-withr')
+
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
+md5sums=('14d542a7a422c9449beece9c82db3ade')
+
+build(){
+ R CMD INSTALL ${_pkgtar} -l $srcdir
+}
+package() {
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
+}
+