# Maintainer: Pekka Ristola # Contributor: Guoyi Zhang # Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: frichtlm _pkgname=lifecycle _pkgver=1.0.3 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=7 pkgdesc="Manage the Life Cycle of your Package Functions" arch=(any) url="https://cran.r-project.org/package=${_pkgname}" license=(MIT) depends=( r-cli r-glue r-rlang ) optdepends=( r-covr r-crayon r-knitr r-lintr r-rmarkdown r-testthat r-tibble r-tidyverse r-vctrs r-withr ) source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('023bff9f9b99ca56ed01b705a41a8bed') sha256sums=('6459fdc3211585c0cdf120427579c12149b02161efe273a64b825c05e9aa69c2') build() { mkdir -p build R CMD INSTALL "$_pkgname" -l build } 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" }