# Maintainer: Pekka Ristola # Contributor: Guoyi Zhang # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: frichtlm _pkgname=glue _pkgver=1.7.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 pkgdesc="Interpreted String Literals" arch=(x86_64) url="https://cran.r-project.org/package=$_pkgname" license=(MIT) depends=( r ) optdepends=( r-crayon r-dbi r-dplyr r-knitr r-magrittr r-rlang r-rmarkdown r-rsqlite r-testthat r-vctrs r-waldo r-withr ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('e4e7b07da0c02b008d9a9759b2acbc99') b2sums=('24dfe8da1b1c6aa2f2696919adc37388464b6467bfdaaeacfaf93f13a06259c126e8bd94f5bac6fd9d4a5a6403fd342911b43e2593a60ff34e360cd62acfe0c1') 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/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" }