blob: b6077bf4d9b7882478a422a1b988c53bd6657c36 (
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
|
# Maintainer: Lionel Miller <delonorm@gmail.com>
pkgname=gatk-bin
pkgver=4.0.6.0
pkgrel=1
pkgdesc="Variant discovery in high-throughput bioinformatics sequencing data"
arch=('any')
url=https://software.broadinstitute.org/"${pkgname}"
license=('BSD')
depends=('java-environment=8' 'python')
optdepends=('r: plot generation for some tools')
conflicts=('gatk')
source=(
"${pkgname}-${pkgver}.zip::https://github.com/broadinstitute/gatk/releases/download/${pkgver}/gatk-${pkgver}.zip"
gatk.sh
"${pkgname}-license.txt::https://raw.githubusercontent.com/broadinstitute/gatk/d6a7fcd895677424b491df8c4ee6227e34b52251/LICENSE.TXT"
)
sha512sums=(
'6d2247ed5f06e61b561347c8d09cc789b38ad0ea7ab254036b0d9638a9c839ba128427cfed146c525f981fae407eb0448b2e10d0a68e679c297872cb19d25a0f'
'a9984153bc489bf5814adc8f8bffd92782e7dd031f2b9a0798d2dc005438445f5eefed6ce3b64b776197c49fb8579e4c968e7cdc4398c5df0145e5105cc20271'
'9753eef4b1f3aa96b790eaeacbe92ecb9d8fee6de9b918244a519a53b5285d57d2128e62f6a86c5d931d217a72f08e806ff81e95ad8d271c1df737384c81e30e'
)
package() {
# I am using the launcher script from the source-based gatk package
# instead of the official Python launcher because Python launcher is
# far more complex than this script, and I have not investigated in
# detail what it does.
install -Dm755 gatk.sh "${pkgdir}"/usr/bin/gatk
# Downloading the license separately because it is not included
# in the distribution, and namcap complains if it is not installed.
install -Dm644 "${pkgname}-license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
# Resing much of the installation procedure from the source-based package.
cd "${srcdir}/gatk-${pkgver}"
install -Dm644 README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/README.md
install -Dm644 "gatk-package-${pkgver}-local.jar" "${pkgdir}/usr/share/java/${pkgname}/GenomeAnalysisTK.jar"
install -Dm644 "gatk-completion.sh" "${pkgdir}/usr/share/bash-completion/completions/gatk"
# Things that are missing:
# 1. spark executable (maybe it should go in a separate package)
# 2. gatkdoc
# 3. scripts
# 4. Python launcher (not sure whether it is superior to the current one)
}
|