blob: e73610b541011c0b650af1d4f33d24477d552fdb (
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.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
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=('4c40181d0401b1e3e6350d40806b08ed')
b2sums=('76e995259caee2c193719909078db536cab8114480bc8591c3da49f8ef20f615729f26af0384a9c93137d449dfe95a67c7f9d1d440f0b174f2db0dccec168fd2')
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"
}
|