From: Harvie Date: Thu, 27 May 2010 12:40:36 +0000 (+0200) Subject: Added jTux game http://jtux.mgn.cz/ X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=824a92b8ea3181af0fe0eb0d4588f12537370e0d;p=mirrors%2FArchLinux-Packages.git Added jTux game http://jtux.mgn.cz/ --- diff --git a/jtux/PKGBUILD b/jtux/PKGBUILD new file mode 100644 index 0000000..c6a79b5 --- /dev/null +++ b/jtux/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Jaroslav Lichtblau + +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 index 0000000..8647d93 --- /dev/null +++ b/jtux/jtux.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Categories=Game;Java; +Exec=jtux +Icon=jtux +Terminal=false +Type=Application +Name=JTux +GenericName=2D Shooting game