From 824a92b8ea3181af0fe0eb0d4588f12537370e0d Mon Sep 17 00:00:00 2001 From: Harvie Date: Thu, 27 May 2010 14:40:36 +0200 Subject: [PATCH] Added jTux game http://jtux.mgn.cz/ --- jtux/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ jtux/jtux.desktop | 8 ++++++++ 2 files changed, 46 insertions(+) create mode 100644 jtux/PKGBUILD create mode 100644 jtux/jtux.desktop 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 -- 2.30.2