csync-git
[mirrors/ArchLinux-Packages.git] / jtux / PKGBUILD
... / ...
CommitLineData
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=jtux
6pkgver=0.0.1
7pkgrel=1
8pkgdesc="2D action game (overhand shotgame), like Bulanci or Tuxanci."
9arch=('any')
10url="http://jtux.mgn.cz/"
11license=('GPL')
12depends=('java-runtime' 'desktop-file-utils')
13source=(
14 http://jtux.mgn.cz/download/JTUx.jar
15 $pkgname.desktop
16)
17md5sums=('539a8cdc8c9f7316407a18dc3f9e6671'
18 '48cc1b524cf491109d51c8ff239b588c')
19
20build() {
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
36java -jar /usr/share/java/$pkgname/JTux.jar
37EOF
38
39 chmod 775 ${pkgdir}/usr/bin/$pkgname
40}
This page took 0.114791 seconds and 4 git commands to generate.