Added jTux game http://jtux.mgn.cz/
authorHarvie <tomas@mudrunka.cz>
Thu, 27 May 2010 12:40:36 +0000 (14:40 +0200)
committerHarvie <tomas@mudrunka.cz>
Thu, 27 May 2010 12:40:36 +0000 (14:40 +0200)
jtux/PKGBUILD [new file with mode: 0644]
jtux/jtux.desktop [new file with mode: 0644]

diff --git a/jtux/PKGBUILD b/jtux/PKGBUILD
new file mode 100644 (file)
index 0000000..c6a79b5
--- /dev/null
@@ -0,0 +1,38 @@
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=jtux
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="2D action game (overhand shotgame), like Bulánci or Tuxanci."
+arch=('i686' 'x86_64')
+url="http://jtux.mgn.cz/"
+license=('GPL')
+depends=('java-runtime' 'desktop-file-utils')
+source=(
+       http://jtux.mgn.cz/download/JTUx.jar
+       $pkgname.desktop
+)
+md5sums=('539a8cdc8c9f7316407a18dc3f9e6671'
+         '48cc1b524cf491109d51c8ff239b588c')
+
+build() {
+  cd ${srcdir}/
+
+  install -d ${pkgdir}/usr/share/java/$pkgname || return 1
+  cp JTUx.jar ${pkgdir}/usr/share/java/$pkgname/JTux.jar || return 1
+
+#.desktop + icon files
+  install -D -m644 ${srcdir}/$pkgname.desktop \
+    ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1
+  #install -D -m644 ${srcdir}/$pkgname-$pkgver/icons/$pkgname.png \
+  #  ${pkgdir}/usr/share/pixmaps/$pkgname.png || return 1
+
+#executable file
+  install -d ${pkgdir}/usr/bin || return 1
+       cat > ${pkgdir}/usr/bin/$pkgname << EOF
+#!/bin/sh
+java -jar /usr/share/java/$pkgname/JTux.jar
+EOF
+
+       chmod 775 ${pkgdir}/usr/bin/$pkgname
+}
diff --git a/jtux/jtux.desktop b/jtux/jtux.desktop
new file mode 100644 (file)
index 0000000..8647d93
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Categories=Game;Java;
+Exec=jtux
+Icon=jtux
+Terminal=false
+Type=Application
+Name=JTux
+GenericName=2D Shooting game
This page took 0.136901 seconds and 4 git commands to generate.