diff options
author | Alex Branham | 2018-05-31 11:06:34 -0500 |
---|---|---|
committer | Alex Branham | 2018-05-31 11:06:34 -0500 |
commit | 706e6f683082c1482422c6079b7df515c46a1bae (patch) | |
tree | 3ee84b4466e2eb095aadfd10efc7d5c352241990 | |
parent | 343c8ee2ba2bc974d6b2118e192ffdcaec57f958 (diff) | |
download | aur-706e6f683082c1482422c6079b7df515c46a1bae.tar.gz |
Upkg 0.10.1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 28 insertions, 30 deletions
@@ -1,15 +1,16 @@ pkgbase = r-evaluate - pkgdesc = parsing and evaluation tools that provide more details than the default - pkgver = 0.9 + pkgdesc = Parsing and Evaluation Tools that Provide More Details than the Default + pkgver = 0.10.1 pkgrel = 1 - url = https://github.com/hadley/evaluate + url = https://cran.r-project.org/package=evaluate arch = any license = MIT - makedepends = curl - makedepends = grep - makedepends = python-html2text - depends = r>=3.0.2 - depends = r-stringr>=0.6.2 + depends = r + depends = r-stringr + optdepends = r-testthat + optdepends = r-ggplot2 + source = https://cran.r-project.org/src/contrib/evaluate_0.10.1.tar.gz + md5sums = 1dde5a35e2b9d57f1b1bb16791b35ff5 pkgname = r-evaluate @@ -1,29 +1,26 @@ -# Maintainer: generated by script at https://github.com/zasdfgbnm/aurcran - -_pkgname=evaluate -_pkgnamelower=evaluate -_repo='http://cran.stat.ucla.edu/' -_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html" -pkgname=r-$_pkgnamelower -pkgver=0.9 +# Maintainer: Alex Branham <branham@utexas.edu> +_cranname=evaluate +_cranver=0.10.1 +_pkgtar=${_cranname}_${_cranver}.tar.gz +pkgname=r-evaluate +pkgver=${_cranver//[:-]/.} pkgrel=1 -pkgdesc='parsing and evaluation tools that provide more details than the -default' -arch=(any) -url="https://github.com/hadley/evaluate" +pkgdesc="Parsing and Evaluation Tools that Provide More Details than the Default" +arch=('any') +url="https://cran.r-project.org/package=${_cranname}" license=('MIT') -depends=('r>=3.0.2' 'r-stringr>=0.6.2') -makedepends=('curl' 'grep' 'python-html2text') +depends=('r' 'r-stringr') -pkgver() { - curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|tr '-' '.'|grep -o '[0-9\.]*' -} +optdepends=('r-testthat' 'r-ggplot2') -build() { - Rscript -e "install.packages(\"$_pkgname\", lib=\"$srcdir\", repos=\"$_repo\")" -} +source=("https://cran.r-project.org/src/contrib/${_pkgtar}") +md5sums=('1dde5a35e2b9d57f1b1bb16791b35ff5') +build(){ + R CMD INSTALL ${_pkgtar} -l $srcdir +} package() { install -d "$pkgdir/usr/lib/R/library" - cp -r "$srcdir/$_pkgname" "$pkgdir/usr/lib/R/library" -}
\ No newline at end of file + cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library" +} + |