summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66756e0d01c3e38a87161e33685f9c651f66f86c (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
# Maintainer: Joakim Reinert <mail+aur@jreinert.com>

_gitname=axoloti
pkgname=${_gitname}-git
pkgver=1.0.11.r61.g6a05b1c2
pkgrel=5
pkgdesc='A workbench to compose and edit sound algorithms and interactions for the axoloti core'
arch=(x86_64)
url="http://www.axoloti.com/"
license=(GPL)
depends=('java-runtime=8' 'axoloti-runtime>=2.0')
makedepends=(git apache-ant libtool automake autoconf jdk8-openjdk)
provides=(axoloti)
conflicts=(axoloti)

source=('git+https://github.com/axoloti/axoloti.git' 'axoloti.sh')

sha512sums=(
  SKIP
  d3df8647a7adb5df40549fe8f81579df11cbe409527f42101d5a1948102895afbd764ee0b7dfb53f56694aea4ba0b1ffeadee012d7b36a9c032d686e1586a0b3
)

build() {
    echo '##### building GUI... #####'
    cd "$srcdir/$_gitname"
    export JAVA_HOME='/usr/lib/jvm/java-8-openjdk'
    ant
}

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    install -Dm644 "$srcdir/$_gitname/platform_linux/49-axoloti.rules" \
        "$pkgdir/etc/udev/rules.d/49-axoloti.rules"
    install -Dm644 "$srcdir/$_gitname/dist/Axoloti.jar" \
        "$pkgdir/usr/share/$_gitname/Axoloti.jar"
    install -Dm755 "$srcdir/axoloti.sh" "$pkgdir/usr/bin/axoloti"
    install -Dm644 "$srcdir/$_gitname/license.txt" "$pkgdir/usr/share/licenses/axoloti/license.txt"
}