summaryrefslogtreecommitdiff
path: root/community/ltris/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ltris/PKGBUILD')
-rw-r--r--community/ltris/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/ltris/PKGBUILD b/community/ltris/PKGBUILD
new file mode 100644
index 000000000..54fcd247b
--- /dev/null
+++ b/community/ltris/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 7041 2009-12-30 05:28:27Z ebelanger $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: SmackleFunky <smacklefunky@optusnet.com.au>
+
+pkgname=ltris
+pkgver=1.0.14
+pkgrel=1
+pkgdesc="A tetris clone where you have a bowl with blocks falling down."
+arch=('i686' 'x86_64')
+url="http://lgames.sourceforge.net/index.php?project=LTris"
+license=('GPL')
+depends=('sdl_mixer')
+install=ltris.install
+source=(http://downloads.sourceforge.net/lgames/${pkgname}-${pkgver}.tar.gz)
+md5sums=('7eff57f492bc880a02a58c64f638959e')
+sha1sums=('031262093c99376c3c7349798f099c1e7ea0867f')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --localstatedir=/var/games || return 1
+ make || return 1
+ make DESTDIR="${pkgdir}" install || return 1
+ install -d "${pkgdir}/usr/share/pixmaps"
+ install -m644 icons/ltris{16,32,48}.xpm "${pkgdir}/usr/share/pixmaps"
+
+ chown root:games "${pkgdir}/usr/bin/ltris"
+ chmod 2755 "${pkgdir}/usr/bin/ltris"
+ chown root:games "${pkgdir}/var/games"
+ chmod 775 "${pkgdir}/var/games"
+ rm "${pkgdir}/var/games/ltris.hscr"
+}