blob: 4637bd93642ef5498997bc6ff8e009f91bdfa0de (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=harmony
_pkgver=1.2.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Fast, Sensitive, and Accurate Integration of Single Cell Data"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
blas
lapack
r-cowplot
r-dplyr
r-ggplot2
r-rcpp
r-rhpcblasctl
r-rlang
r-tibble
)
makedepends=(
r-rcpparmadillo
r-rcppprogress
)
checkdepends=(
r-testthat
)
optdepends=(
r-data.table
r-ggrepel
r-ggthemes
r-knitr
r-patchwork
r-rmarkdown
r-seurat
r-singlecellexperiment
r-testthat
r-tidyr
r-tidyverse
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('d67e20a7acfb92d77ed1a3b29562081d')
b2sums=('33cb0537bc40a0eae405fd2e7098f8876dbd42dc6ce6e5a13f5100bda808af6e39180ae27c8df568296f1afc5ad7a240a1c0ba7c81248ae209c7598545115cf4')
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"
}
|