updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / slump / PKGBUILD
blob3b65de522b7e051a95f1757d386e7939993d9bc8
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: rabyte <rabyte__gmail>
4 pkgname=slump
5 pkgver=0.003.02
6 pkgrel=1
7 pkgdesc="A SLIGE-based random map generator for Freedoom"
8 arch=('i686' 'x86_64')
9 url="http://www.samiam.org/slump.html"
10 license=('GPL' 'custom:"slump"')
11 depends=('glibc')
12 install=slump.install
13 source=('http://www.samiam.org/slump/old/slump/slump-0.003.02.tar.bz2'
14         'license.txt')
15 md5sums=('40069d684fe9a47a659dbc5d8182b37d'
16          '03dd7b8aeec8aea1cebe7d51d633e621')
18 build() {
19   cd ${srcdir}/$pkgname-$pkgver
21   # fix compiler flags
22   sed -i "s|-g ||g" Makefile
24   # add revenant to monster range and fix a naming bug
25   sed   -e '9229 s|FALSE|TRUE|' \
26         -e 's|"slige|"slump|g' \
27         -i slump.c
29   # uncomment to add baron and hellknight (present in freedoom-svn only):
30   # sed -i -e '9158 s|FALSE|TRUE|' -e '9246 s|FALSE|TRUE|' slump.c
32   make FLAGS="${CFLAGS}" || return 1
33   install -m755 -D ${srcdir}/$pkgname-$pkgver/slump ${pkgdir}/usr/bin/slump
34   install -m644 -D ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/custom/slump/license.txt