Commit | Line | Data |
---|---|---|
d20111a0 | 1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
8de3bfa9 | 2 | # Maintainer: Thomas Mudrunka <harvie@@email..cz> |
d20111a0 | 3 | # You can also contact me on http://blog.harvie.cz/ |
824a92b8 H |
4 | |
5 | pkgname=jtux | |
6 | pkgver=0.0.1 | |
7 | pkgrel=1 | |
8de3bfa9 | 8 | pkgdesc="2D action game (overhand shotgame), like Bulanci or Tuxanci." |
d20111a0 | 9 | arch=('any') |
824a92b8 H |
10 | url="http://jtux.mgn.cz/" |
11 | license=('GPL') | |
12 | depends=('java-runtime' 'desktop-file-utils') | |
13 | source=( | |
14 | http://jtux.mgn.cz/download/JTUx.jar | |
15 | $pkgname.desktop | |
16 | ) | |
17 | md5sums=('539a8cdc8c9f7316407a18dc3f9e6671' | |
18 | '48cc1b524cf491109d51c8ff239b588c') | |
19 | ||
20 | build() { | |
21 | cd ${srcdir}/ | |
22 | ||
23 | install -d ${pkgdir}/usr/share/java/$pkgname || return 1 | |
24 | cp JTUx.jar ${pkgdir}/usr/share/java/$pkgname/JTux.jar || return 1 | |
25 | ||
26 | #.desktop + icon files | |
27 | install -D -m644 ${srcdir}/$pkgname.desktop \ | |
28 | ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1 | |
29 | #install -D -m644 ${srcdir}/$pkgname-$pkgver/icons/$pkgname.png \ | |
30 | # ${pkgdir}/usr/share/pixmaps/$pkgname.png || return 1 | |
31 | ||
32 | #executable file | |
33 | install -d ${pkgdir}/usr/bin || return 1 | |
34 | cat > ${pkgdir}/usr/bin/$pkgname << EOF | |
35 | #!/bin/sh | |
36 | java -jar /usr/share/java/$pkgname/JTux.jar | |
37 | EOF | |
38 | ||
39 | chmod 775 ${pkgdir}/usr/bin/$pkgname | |
40 | } |