summaryrefslogtreecommitdiff
path: root/community/puzzles
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/puzzles
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/puzzles')
-rw-r--r--community/puzzles/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/puzzles/PKGBUILD b/community/puzzles/PKGBUILD
new file mode 100644
index 000000000..912af073d
--- /dev/null
+++ b/community/puzzles/PKGBUILD
@@ -0,0 +1,35 @@
+# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=puzzles
+pkgver=8951
+pkgrel=1
+pkgdesc="Simon Tatham's Portable Puzzle Collection"
+arch=('i686' 'x86_64')
+url="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
+license=('MIT')
+makedepends=('pkgconfig')
+depends=('gtk2')
+source=(http://www.chiark.greenend.org.uk/~sgtatham/${pkgname}/${pkgname}-r${pkgver}.tar.gz)
+md5sums=('8707698a75aa052e95c9d7417b44efd0')
+
+build() {
+ cd ${srcdir}/${pkgname}-r${pkgver}
+
+ sed -i 's|\$(gamesdir)|\$(bindir)|' Makefile
+ make prefix=/usr || return 1
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-r${pkgver}
+
+ install -d ${pkgdir}/usr/{bin,share/licenses/${pkgname}}
+ install -Dm644 LICENCE ${pkgdir}/usr/share/licenses/${pkgname}/
+
+ make prefix=/usr DESTDIR=${pkgdir} install || return 1
+
+ #fix FS#14600
+ mv ${pkgdir}/usr/bin/net ${pkgdir}/usr/bin/puzzles-net || return 1
+ mv ${pkgdir}/usr/bin/cube ${pkgdir}/usr/bin/puzzles-cube || return 1
+ mv ${pkgdir}/usr/bin/blackbox ${pkgdir}/usr/bin/puzzles-blackbox || return 1
+}