summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9cc2b4811a535ea8bca609a3aacc4d00546055f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>

_pkgname=sccomp
_pkgver=1.6.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Robust Outlier-aware Estimation of Composition and Heterogeneity for Single-cell Data"
arch=(x86_64)
url="https://bioconductor.org/packages/$_pkgname"
license=('GPL-3.0-only')
depends=(
  onetbb
  r-dplyr
  r-forcats
  r-ggplot2
  r-ggrepel
  r-glue
  r-lifecycle
  r-magrittr
  r-patchwork
  r-purrr
  r-rcpp
  r-rcppparallel
  r-readr
  r-rlang
  r-rstan
  r-rstantools
  r-scales
  r-seuratobject
  r-singlecellexperiment
  r-stringr
  r-tibble
  r-tidyr
  r-tidyselect
)
makedepends=(
  r-bh
  r-rcppeigen
  r-stanheaders
)
checkdepends=(
  r-testthat
  r-tidyseurat
)
optdepends=(
  r-biocstyle
  r-knitr
  r-loo
  r-markdown
  r-testthat
  r-tidyseurat
  r-tidysinglecellexperiment
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('8a24adb07d155b94645a5f684e1455f6')
b2sums=('50496ee054c58cd1d4a4487240839b5413553fcce518d8797919d39916260f823cf79b1c68cc285243373cede1fdedadee0c89e04dedabcd43c7831cd276d1c5')

build() {
  mkdir build
  # compilation needs a lot of memory
  MAKEFLAGS+=" -j1"
  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"
}