# Maintainer: Guoyi Zhang _pkgname=triebeard _pkgver=0.4.1 pkgname=r-${_pkgname,,} pkgver=0.4.1 pkgrel=1 pkgdesc="'Radix' Trees in 'Rcpp'" arch=('x86_64') url="https://cran.r-project.org/package=${_pkgname}" license=('MIT') depends=( r r-rcpp ) optdepends=( r-knitr r-rmarkdown r-testthat ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") sha256sums=('192f2fef6341e43bd56ef4f9841e813e07be990f4ffcf38c5606259630efe0f7') build() { R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" } package() { install -dm0755 "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: