# Maintainer: Pekka Ristola _pkgname=CNVMetrics _pkgver=1.8.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 pkgdesc="Copy Number Variant Metrics" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=('Artistic-2.0') depends=( r-biocparallel r-genomicranges r-gridextra r-iranges r-magrittr r-pheatmap r-rbeta2009 r-s4vectors ) checkdepends=( r-testthat ) optdepends=( r-biocstyle r-knitr r-rmarkdown r-testthat ) source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('daecc5c14654f227e031a0e01dd1c396') b2sums=('54fa22d683fa24b93152e56fd946cab372b89f133c3d9f6930fb0c1f4bd0d3bac74e2c5ece6cb9e0e124227684abb16eb28eaa9dc5739887d245a5b3d0c87838') 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" }