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