diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 27 insertions, 19 deletions
@@ -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 @@ -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" } |