summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f69812cd0c72ed67ce0deb9c4bfc19c796ca8e9b (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
# 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=ShortRead
_bcver=1.60.0
pkgname=r-${_bcname,,}
pkgver=${_bcver//[:-]/.}
pkgrel=1
pkgdesc="FASTQ input and manipulation"
arch=(i686 x86_64)
url="https://bioconductor.org/packages/release/bioc/html/${_bcname}.html"
license=(Artistic2.0)
depends=(
    "r"
    "r-biobase"
    "r-biocgenerics>=0.23.3"
    "r-biocparallel"
    "r-biostrings>=2.47.6"
    "r-genomeinfodb>=1.15.2"
    "r-genomicalignments>=1.15.6"
    "r-genomicranges>=1.31.8"
    "r-hwriter"
    "r-iranges>=2.13.12"
    "r-lattice"
    "r-latticeextra"
    "r-rhtslib"
    "r-rsamtools>=1.31.2"
    "r-s4vectors>=0.17.25"
    "r-xvector"
    "r-zlibbioc"
)
optdepends=(
    "r-biocstyle"
    "r-biomart"
    "r-genomicfeatures"
    "r-runit"
    "r-yeastnagalakshmi"
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_bcname}_${_bcver}.tar.gz")
b2sums=("7b20c86f1092be6cc5f0d4e1becfe257def06e3e958def1a235fd982238a62ed3ff605677a48fd50e3f73b90b3ffb676885d3a1efe5e0e7f9ea1acd56107d291")

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

}