summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f2c83327cb2752c0db8874954d55fc849888b38 (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
# Maintainer: peippo <christoph+aur@christophfink.com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Grey Christoforo <first name at last name dot net>

_bcname=Biostrings
_bcver=2.70.3

pkgname=r-${_bcname,,}
pkgdesc="Efficient manipulation of biological strings"
url="https://bioconductor.org/packages/release/bioc/html/${_bcname}.html"
pkgver=${_bcver//[:-]/.}
pkgrel=1

arch=(i686 x86_64)
license=(Artistic2.0)

depends=(
    "r>=4.0.0"
    "r-biocgenerics>=0.37.0"
    "r-crayon"
    "r-genomeinfodb"
    "r-iranges>=2.31.2"
    "r-s4vectors>=0.27.12"
    "r-xvector>=0.37.1"
)
optdepends=(
    "r-affy>=1.41.3"
    "r-affydata>=1.11.5"
    "r-biocstyle"
    "r-bsgenome>=1.13.14"
    "r-bsgenome.celegans.ucsc.ce2>=1.3.11"
    "r-bsgenome.dmelanogaster.ucsc.dm3>=1.3.11"
    "r-bsgenome.hsapiens.ucsc.hg18"
    "r-drosophila2probe"
    "r-genomicfeatures>=1.3.14"
    "r-hgu133aprobe"
    "r-hgu95av2cdf"
    "r-hgu95av2probe"
    "r-knitr"
    "r-runit"
)

source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_bcname}_${_bcver}.tar.gz")
b2sums=("aad04060ae1c199bf735a7ad0a33fbf9d4181c13f17aeaebdc6d68896883a18cc20280f3bf344f24cb56f0269f4945c79f10d2fd5781a6c9ae9c3a982eeacdcc")

build() {
  R CMD INSTALL ${_bcname}_${_bcver}.tar.gz -l "${srcdir}"
}

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

  if [[ -f "${_bcname}/LICENSE" ]]; then
    install -Dm0644 "${_bcname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  fi
}