# Maintainer: Pekka Ristola _pkgname=scider _pkgver=1.2.0 pkgname=r-${_pkgname,,} pkgver=${_pkgver//-/.} pkgrel=1 pkgdesc="Spatial cell-type inter-correlation by density in R" arch=(any) url="https://bioconductor.org/packages/$_pkgname" license=('GPL-3.0-only') depends=( r-ggplot2 r-igraph r-isoband r-janitor r-knitr r-lwgeom r-pheatmap r-plotly r-rlang r-s4vectors r-sf r-shiny r-spatialexperiment r-spatstat.explore r-spatstat.geom r-summarizedexperiment ) checkdepends=( r-edger r-testthat ) optdepends=( r-edger r-testthat ) source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") md5sums=('f363d42b5f44bc890e5261debfc62b12') b2sums=('4509e99e33582f8c0b3806d2d5aedb4e32d426db0a538512bd3d77e92d69051f4955e4326f4f0c70bb363d2a6441a3b96b4a649d926375434008f401e5080f37') 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" }