# Maintainer: Pekka Ristola # Contributor: Guoyi Zhang _pkgname=multiMiR _pkgver=1.26.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 pkgdesc="Integration of multiple microRNA-target databases with their disease and drug associations" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=('MIT') depends=( r-annotationdbi r-biocgenerics r-dplyr r-purrr r-rcurl r-tibble r-xml ) checkdepends=( r-testthat ) optdepends=( r-biocstyle r-edger r-knitr r-rmarkdown r-testthat ) source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('70332945566431b64e9813caa568c68d') b2sums=('c90dee563b0d8523d0ef69187f249afe32b893e419a805c7855a60ebb86ad5c5192113604b2b92b158dde96eca8721fe625f233a5e361bbd9d1cb6d74bc6f74b') build() { mkdir build R CMD INSTALL -l build "$_pkgname" } check() { cd "$_pkgname/tests" R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R } 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" }