|
1 | 1 | # Maintainer: Bipin Kumar <bipin@ccmb.res.in> |
2 | | - |
| 2 | +# Previous Maintainer: Clint Valentine <valentine.clint@gmail.com> |
3 | 3 | pkgname=snpeff |
| 4 | +_pkgname=SnpEff |
| 5 | +_pkg2=SnpSift |
4 | 6 | pkgver=5.1 |
5 | 7 | pkgrel=1 |
6 | | -pkgdesc="Genetic variant annotation and effect prediction toolbox. https://doi.org/10.4161/fly.19695" |
| 8 | +pkgdesc="Genetic variant annotation and effect prediction toolbox. doi:10.4161/fly.19695" |
7 | 9 | arch=('any') |
8 | 10 | url="https://pcingola.github.io/SnpEff/" |
| 11 | +provides=('SnpSift') |
9 | 12 | license=('MIT') |
10 | | -depends=('java-runtime>=12' 'python' 'perl' 'bash') |
11 | | -source=( |
12 | | - snpEff.sh |
13 | | - SnpSift.sh |
14 | | - https://snpeff.blob.core.windows.net/versions/snpEff_latest_core.zip |
15 | | -) |
16 | | -sha256sums=('e0ba5679a90efdb39cd9398b1db708444fd8e5321182cedf72696b3ae1e2e2b9' |
17 | | - '4bd0163c6b8864ed6ea3f20d215b0bf371e10eaa4156ffcf8429d6f71ded93e3' |
18 | | - '919e0595c08e86d1dd82279723c83cb872070244ee4ce0cb3167bde2b272893b') |
| 13 | +depends=('java-runtime>=12' 'python' 'perl' 'antlr4') |
| 14 | +makedepends=('maven' 'java-environment>=12') |
| 15 | +source=("$_pkgname-$pkgver.tar.gz::https://github.com/pcingola/SnpEff/archive/refs/tags/v$pkgver.tar.gz" |
| 16 | + "$_pkg2-$pkgver.tar.gz::https://github.com/pcingola/SnpSift/archive/refs/tags/v$pkgver.tar.gz" |
| 17 | + "snpSift.sh" |
| 18 | + "snpEff.sh" |
| 19 | + ) |
| 20 | +sha512sums=('eb12a126f71536eb04132e40b5f3e0bea33b6512dce999a70e5c170d2839d739ea8b52e5b38822e83c544693aec7ece20f13674634ae3971a6f08659dc7b9640' |
| 21 | + '074139695584227d3e523962b81ed1cd1687a146b973ec761e5c42fccf865b6f01bd8fc1280a1f73e7c9ab3292bfc3358d56a572f0795bd05fa879011a4ad950' |
| 22 | + '9819376173c372cec8ae3f28d1b3857a1b63690bf16213e6f26ebd5d29150616c8f8a3d0ecf8d9ba24c34e24f28ab56edecf8c9cee3c578ae673da7c65c48f0d' |
| 23 | + '0eb2339b55969cc065b8c15bee06d8728b0576689217777bf24e209409d61210f91e814bb1a5dddc651dd2a3f35d0f3911bd3161d6d3275604ea58cf83f9086a') |
| 24 | +build() { |
| 25 | + # Build SnpEff |
| 26 | + cd "${srcdir}/$_pkgname-$pkgver" |
| 27 | + mvn -e clean compile assembly:single jar:jar |
| 28 | + |
| 29 | + # Install SnpEff.jar file in local Maven repo as dependency for building SnpSift |
| 30 | + mvn install:install-file \ |
| 31 | + -Dfile=target/SnpEff-$pkgver.jar \ |
| 32 | + -DgroupId=org.snpeff \ |
| 33 | + -DartifactId=SnpEff \ |
| 34 | + -Dversion=$pkgver \ |
| 35 | + -Dpackaging=jar \ |
| 36 | + -DgeneratePom=true \ |
| 37 | + --quiet |
| 38 | + |
| 39 | + # Build SnpSift |
| 40 | + cd "${srcdir}/$_pkg2-$pkgver" |
| 41 | + mvn -e clean compile assembly:single jar:jar |
| 42 | + |
| 43 | +} |
19 | 44 |
|
20 | 45 | package() { |
21 | | - cd "${srcdir}/" |
22 | | - install -Dm644 snpEff/snpEff.jar "${pkgdir}"/usr/share/java/snpEff/snpEff.jar |
23 | | - for d in snpEff/ ; do |
24 | | - cp -R "$d" "${pkgdir}"/usr/share/java/ |
25 | | - done |
26 | | - install -Dm644 snpEff/snpEff.jar "${pkgdir}"/usr/share/java/snpEff/snpEff.jar |
27 | | - install -Dm644 snpEff/SnpSift.jar "${pkgdir}"/usr/share/java/snpEff/SnpSift.jar |
28 | | - install -Dm644 snpEff/snpEff.config "${pkgdir}"/usr/share/java/snpEff/snpEff.config |
29 | | - install -Dm644 snpEff/LICENSE.md "${pkgdir}"/usr/share/licenses/snpEff/LICENSE.md |
30 | | - install -Dm755 snpEff.sh "${pkgdir}"/usr/bin/snpEff |
31 | | - install -Dm755 SnpSift.sh "${pkgdir}"/usr/bin/SnpSift |
| 46 | + install -Dm644 ${srcdir}/$_pkgname-$pkgver/target/SnpEff-$pkgver-jar-with-dependencies.jar "${pkgdir}"/usr/share/java/snpEff/snpEff.jar |
| 47 | + install -Dm644 ${srcdir}/$_pkg2-$pkgver/target/SnpSift-$pkgver-jar-with-dependencies.jar "${pkgdir}"/usr/share/java/snpEff/snpSift.jar |
| 48 | + install -Dm644 ${srcdir}/$_pkgname-$pkgver/config/snpEff.config "${pkgdir}"/usr/share/java/snpEff/snpEff.config |
| 49 | + install -Dm644 ${srcdir}/$_pkgname-$pkgver/LICENSE.md "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE |
| 50 | + install -Dm755 snpEff.sh "${pkgdir}"/usr/bin/snpeff |
| 51 | + install -Dm755 snpSift.sh "${pkgdir}"/usr/bin/snpsift |
32 | 52 | } |
0 commit comments