# Maintainer: Guoyi Zhang _pkgname=ProtGenerics _pkgver=1.34.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=2 pkgdesc="Generic infrastructure for Bioconductor mass spectrometry packages" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=(Artistic2.0) depends=( r ) optdepends=( r-testthat ) source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('5d55c00588169aa089bb457e2d94669a') b2sums=('2502effe500375cce60b36746f54d10f5780e5f052aa0da190a6bac5ca96071ee3647e275df1eafaf6f9f84e57947ded49151ffef218a0f884a40282fc4e8a34') 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" }