summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35313a8731158bc3f4e5ccaaabcfc6f786912081 (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=stringi
_pkgnamelower=stringi
_repo='http://cran.stat.ucla.edu/'
_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
pkgname=r-$_pkgnamelower
pkgver=1.1.1
pkgrel=1
pkgdesc='character string processing facilities'
arch=(any)
url="http://www.gagolewski.com/software/stringi/
http://site.icu-project.org/ http://www.unicode.org/"
license=('custom')
depends=('r>=2.13.1')
makedepends=('curl' 'grep' 'python-html2text')

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