summaryrefslogtreecommitdiff
path: root/extra/nppangband/PKGBUILD
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 /extra/nppangband/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/nppangband/PKGBUILD')
-rw-r--r--extra/nppangband/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/extra/nppangband/PKGBUILD b/extra/nppangband/PKGBUILD
new file mode 100644
index 000000000..988ddcf52
--- /dev/null
+++ b/extra/nppangband/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 58001 2009-11-03 08:18:40Z giovanni $
+# Maintainer: James Rayner <iphitus@gmail.com>
+
+pkgname=nppangband
+pkgver=0.5.0.25
+pkgrel=1.1
+pkgdesc="A variant of Angband that attempts to take popular ideas from other variants"
+url="http://www.assembla.com/wiki/show/NPPAngband"
+depends=('ncurses' 'libx11')
+makedepends=('libxaw' 'xorg-font-utils')
+source=(http://www.assembla.com/spaces/NPPAngband/documents/dmfeFgWJir3PuseJe5afGb/download/npp050-rev25-src.zip)
+license=('custom')
+arch=('i686' 'x86_64')
+
+build() {
+
+ cd $srcdir/npp050-rev25-src/src
+ sed 's@# define DEFAULT_PATH "./lib/"@# define DEFAULT_PATH "/usr/share/nppangband/"@' -i config.h
+ sed -i 's/-D"USE_LFB"//g' Makefile.std # Remove framebuffer support, does not compile,
+ make -f Makefile.std
+
+
+ # Fix fonts
+ cd ../lib/xtra/font/
+ tr -d '\r' < compile_bdf_fonts.sh > compile_bdf_fonts2.sh # Convert line endings dos->unix
+ sed -i "s/\.bdf/\.bdf;/g" compile_bdf_fonts2.sh # fix syntax error, missing ;.
+ bash compile_bdf_fonts2.sh # no shebang, use bash explicitly
+
+ # Install
+ cd $srcdir/npp050-rev25-src/
+ mkdir -p $pkgdir/usr/bin $pkgdir/usr/share
+ cp -R lib $pkgdir/usr/share/nppangband/
+ chmod -R 775 $pkgdir/usr/share/nppangband/
+ chown -R root:games $pkgdir/usr/share/nppangband/
+ install -m755 src/nppangband $pkgdir/usr/bin/nppangband
+
+ # install custom license
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}
+
+md5sums=('776d387ccbca31edf7eb30eb1402b0c9')