blob: a6b98f93df59a331dbf2e19a0391a705d293f173 (
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=roxygen2
_pkgnamelower=roxygen2
_repo='http://cran.stat.ucla.edu/'
_cran="https://cran.r-project.org/web/packages/$_pkgname/index.html"
pkgname=r-$_pkgnamelower
pkgver=5.0.1
pkgrel=1
pkgdesc='in-source documentation for r'
arch=(any)
url="https://github.com/klutometis/roxygen"
license=('GPL')
depends=('r>=3.0.2' 'r-stringr>=0.5' 'r-stringi' 'r-brew' 'r-digest' 'r-rcpp>=
0.11.0' 'r-rcpp')
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"
}
|