summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df079b10580405f22e1aba2afe13977d6090dd6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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
pkgrel=1
pkgdesc='parsing and evaluation tools that provide more details than the
default'
arch=(any)
url="https://github.com/hadley/evaluate"
license=('MIT')
depends=('r>=3.0.2' 'r-stringr>=0.6.2')
makedepends=('curl' 'grep' 'python-html2text')

pkgver() {
    curl "$_cran" 2>/dev/null|html2text|grep -oP '(?<=Version:).*'|tr '-' '.'|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"
}