summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f8303ad2d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=lostlabyrinth
+pkgver=5.2.0
+pkgrel=1
+pkgdesc="RPG turn based game"
+arch=('i686' 'x86_64')
+url="http://www.lostlabyrinth.com/"
+license=('GPL')
+depends=('desktop-file-utils' 'libpng' 'sdl_gfx' 'sdl_image' 'sdl_ttf' 'sdl_mixer')
+install=$pkgname.install
+
+if [ "$CARCH" = x86_64 ]
+ then
+ source=(http://www.lostlabyrinth.com/download_${pkgver}/${pkgname}_${pkgver}_64x.tar.gz \
+ $pkgname.desktop \
+ $pkgname.sh)
+md5sums=('2e4f076b016d51159725c466f9b270be'
+ '8feeeb9c84fdfcbc78875c6938e80c0c'
+ 'ea650ff17191f4adff8bcf7b8a2cf439')
+ else
+ source=(http://www.lostlabyrinth.com/download_${pkgver}/${pkgname}_${pkgver}.tar.gz \
+ $pkgname.desktop \
+ $pkgname.sh)
+md5sums=('ef88eff10c3477ddd6aa83fbf4cc7e59'
+ '8feeeb9c84fdfcbc78875c6938e80c0c'
+ 'ea650ff17191f4adff8bcf7b8a2cf439')
+fi
+
+package () {
+ cd "${srcdir}"/laby_$pkgver
+
+ install -d -m777 "${pkgdir}"/usr/share/$pkgname
+ cp -av * "${pkgdir}"/usr/share/$pkgname/
+ install -D -m755 "${srcdir}"/$pkgname.sh "${pkgdir}"/usr/bin/$pkgname
+
+#fixing permissions
+ find "${pkgdir}"/usr/share/$pkgname -type f -exec chmod 664 "{}" \;
+ find "${pkgdir}"/usr/share/$pkgname -type f -exec chown root:users "{}" \;
+ chmod 755 "${pkgdir}"/usr/share/$pkgname/laby
+
+#.desktop file + icon
+ install -D -m644 "${srcdir}"/$pkgname.desktop \
+ "${pkgdir}"/usr/share/applications/$pkgname.desktop
+ install -D -m644 "${srcdir}"/laby_$pkgver/laby.xpm \
+ "${pkgdir}"/usr/share/pixmaps/$pkgname.xpm
+}
+