summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3395d44a836284e956f2807a821ea20622bc911 (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
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=qdapRegex
_pkgver=0.7.8
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Regular Expression Removal, Extraction, and Replacement Tools"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-only')
depends=(
  r-stringi
)
optdepends=(
  r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('c5c21c986834e64e87a44891614f0196')
b2sums=('5d27e98be30591e4b7086e08485d13e2b931aed8b40c0083ec8674f92e5695ea88fcdf7e65b31f02d375d4379d1869cd226f11760ad52a6948b7be0acdfe7c80')

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"
}