summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6457d60db049d017b039193f233e1603d3289549 (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
# Maintainer: Guoyi <kuoi@bioarchlinux.org>

_pkgname=rbiom
_pkgver=2.1.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//[:-]/.}
pkgrel=2
pkgdesc="Read/Write, Analyze, and Visualize 'BIOM' Data"
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('MIT')
depends=(
  r-ape
  r-dplyr
  r-emmeans
  r-fillpattern
  r-ggbeeswarm
  r-ggnewscale
  r-ggplot2
  r-ggrepel
  r-ggtext
  r-jsonlite
  r-magrittr
  r-parallelly
  r-patchwork
  r-pillar
  r-plyr
  r-readr
  r-readxl
  r-slam
  r-vegan
)
optdepends=(
  r-cli
  r-crayon
  r-ggdensity
  r-glue
  r-labeling
  r-lifecycle
  r-openxlsx
  r-optparse
  r-pkgconfig
  r-prettycode
  r-r6
  r-rlang
  r-scales
  r-testthat
  r-tibble
  r-tsne
  r-uwot
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('c0a94c1fab4967ba1b414ca54b37bb8f')
b2sums=('135745feaa8c8d414ea0d6acf5d0da357848918c9b3b0b23d9d024053086e4a2c71bc307530c158833438334e757d0162fa37ae2b3e5cdac776b567cc0eb93ac')

build() {
  mkdir build
  R CMD INSTALL -l build "$_pkgname"
}

package() {
  install -d "$pkgdir/usr/lib/R/library"
  cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}