blob: 8d5f227c2b6593bbb17dc3aa17a0a1e8d54e7e06 (
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
30
31
32
33
34
35
36
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=ore
_pkgver=1.7.4.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="An R Interface to the Onigmo Regular Expression Library"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('BSD-3-Clause')
depends=(
r
)
optdepends=(
r-covr
r-crayon
r-rex
r-tinytest
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('cae052db6dbce48bb12fae5dc7c11343')
b2sums=('62129a64261c37ba774ea527fd80940abaa160485157634c218d7b3ed32ce29c1f8472a6dc814b751150f1fc8eb69248504d169576028abc6380ac52c26e9643')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENCE" "$pkgdir/usr/share/licenses/$pkgname"
}
|