summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97a2d620184fd480fb64212e42c8e327a32d367c (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
#!/bin/bash

# Maintainer: pika02 <pikakolendo02 at gmail dot com>
# Contributor: PumpkinCheshire <me at pumpkincheshire dot com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Stefan Seemayer <mail@semicolonsoftware.de>

pkgname=jalview
pkgver=2.11.4.0
pkgrel=1
pkgdesc='Bioinformatics Multiple Alignment Editor'
arch=(any)
url='https://www.jalview.org/'
license=('GPL3')
depends=('java-runtime')
makedepends=('tar')
source=(
    "http://www.jalview.org/getdown/release/install4j/1.8/jalview-${pkgver//./_}-unix-java_8.tar.gz"
    'jalview'
    'jalview.desktop'
)
noextract=("jalview-${pkgver//./_}-unix-java_8.tar.gz")
sha256sums=('522f71d16d57d357ad95fd25e50753825663caf4117820cd33054a20a0c67f90'
            'dbe5edfa9b17a1f85083b5aae16ef7a186a0d0035e6a81761cf73d0e1121ce58'
            'fa870de0d4ec5be2dfc93405f7e618541737533a34705893274fdfea7dae0600')

prepare() {
    mkdir -p ./$pkgname-$pkgver
    tar -xzvf ./*.tar.gz -C ./$pkgname-$pkgver --strip-components 1
}

package() {
    install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
    install -Dm644 -t "$pkgdir/usr/share/applications/" 'jalview.desktop'

    install -Dm644 -t "$pkgdir/usr/share/java/$pkgname" "$srcdir/$pkgname-$pkgver/release/"*.jar

    install -Dm644 "$srcdir/$pkgname-$pkgver/resource/jalview_logo.png" "$pkgdir/usr/share/pixmaps/jalview_logo.png"
    # install -Dm644 "$srcdir/$pkgname-$pkgver/resource/jalview_logos.ico" "$pkgdir/usr/share/pixmaps/jalview_logos.ico"
}