summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrobot Viktor2019-05-14 20:40:49 +0300
committerDrobot Viktor2019-05-14 20:40:49 +0300
commit69b779b11f9d880f148a030ff13618233f2f3ee6 (patch)
treee86f4819d23973edd182880c7c4afca86e071462
parent97e86a5c8b980301e0b5eae6ce1027d1ee6ded00 (diff)
downloadaur-69b779b11f9d880f148a030ff13618233f2f3ee6.tar.gz
Initial release
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD33
2 files changed, 27 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5530046bd00..74b657743a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,22 @@
pkgbase = r-callr
pkgdesc = Call R from R
- pkgver = 3.0.0
+ pkgver = 3.2.0
pkgrel = 1
url = https://cran.r-project.org/package=callr
arch = any
- license = MIT
+ license = GPL3
depends = r
- depends = r-base64enc
- depends = r-processx>=3.2.0
+ depends = r-processx
depends = r-r6
+ optdepends = r-cliapp
optdepends = r-covr
optdepends = r-crayon
+ optdepends = r-pingr
optdepends = r-ps
optdepends = r-testthat
optdepends = r-withr
- source = https://cran.r-project.org/src/contrib/callr_3.0.0.tar.gz
- md5sums = ed29786f0760021d76fff26b205be2fd
+ source = http://cran.r-project.org/src/contrib/callr_3.2.0.tar.gz
+ md5sums = 0ef93d63ac8d3f413eceb62388d82e40
pkgname = r-callr
diff --git a/PKGBUILD b/PKGBUILD
index d4bb5b2fdd8..d1904ab9fa9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,29 @@
-# Maintainer: Alex Branham <branham@utexas.edu>
-_cranver=3.0.0
-pkgname=r-callr
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+_cranname=callr
+_cranver=3.2.0
+pkgname=r-${_cranname}
pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc='Call R from R'
+pkgdesc="Call R from R"
arch=('any')
-url='https://cran.r-project.org/package=callr'
-license=('MIT')
-depends=('r' 'r-base64enc' 'r-processx>=3.2.0' 'r-r6')
-optdepends=('r-covr' 'r-crayon' 'r-ps' 'r-testthat' 'r-withr')
-source=("https://cran.r-project.org/src/contrib/callr_"$_cranver".tar.gz")
-md5sums=('ed29786f0760021d76fff26b205be2fd')
+url="https://cran.r-project.org/package=${_cranname}"
+license=('GPL3')
+depends=('r' 'r-processx' 'r-r6')
+optdepends=('r-cliapp' 'r-covr' 'r-crayon' 'r-pingr' 'r-ps' 'r-testthat' 'r-withr')
+source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('0ef93d63ac8d3f413eceb62388d82e40')
build(){
- R CMD INSTALL callr_"$_cranver".tar.gz -l "$srcdir"
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l $srcdir
}
+
package() {
- install -dm0755 "$pkgdir"/usr/lib/R/library
- cp -a --no-preserve=ownership callr "$pkgdir"/usr/lib/R/library
+ cd "${srcdir}"
+
+ install -dm0755 "$pkgdir/usr/lib/R/library"
+ cp -a --no-preserve=ownership "$_cranname" "$pkgdir/usr/lib/R/library"
}