summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 229f4a13fd434687a0d2f2a1e5a3d3d2827b1ea3 (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
pkgname=gatk
pkgver=4.6.1.0
pkgrel=1
pkgdesc="Genome Analysis Toolkit https://doi.org/10.1101/gr.107524.110"
arch=('any')
url=https://software.broadinstitute.org/"${pkgname}"
license=('BSD')
makedepends=('git' 'java-environment=17' 'git-lfs')
depends=('java-runtime=17' 'python' 'r')
source=("gatk.sh")
sha256sums=('acc059e37c9e9e9053815095d3eecd00cd115d22f4c14bc4b97d7a5be13234c4')


prepare() {
  cd "${srcdir}"
  git clone https://github.com/broadinstitute/gatk.git "${pkgname}"
  cd $pkgname
  git checkout "${pkgver}"
  git lfs install
}

build() {
  cd "${srcdir}"/"${pkgname}"
  ./gradlew localJar
}

package() {
  install -Dm755 gatk.sh "${pkgdir}"/usr/bin/gatk
  cd "${srcdir}"/"${pkgname}"
  install -Dm644 build/libs/gatk-package-"${pkgver}"-SNAPSHOT-local.jar "${pkgdir}"/usr/share/java/"${pkgname}"/GenomeAnalysisTK.jar
}