1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: wizzomafizzo <wizzomafizzo@gmail.com>
7 pkgdesc='Nethack variant Super Lotsa Added Stuff Hack - Extended Magic'
9 url="http://www.slashem.org/"
11 depends=('ncurses' 'gzip')
12 options=('!makeflags')
13 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/se007e7f3.tar.gz)
15 md5sums=('54b4534fe85f08722e8b6b38d52c2e9a')
18 cd ${srcdir}/$pkgname-$pkgver/sys/unix
21 cd ${srcdir}/$pkgname-$pkgver/include
22 sed -e '/define COMPRESS/ s|/usr/bin/compress|/bin/gzip|' \
23 -e '/define COMPRESS_EXTENSION/ s|".Z"|".gz"|' \
24 -e 's|^/\* \(#define DLB\) \*/|\1|' -i config.h
25 sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \
26 -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i unixconf.h
27 cd ${srcdir}/$pkgname-$pkgver/src
28 sed -e 's|^# \(WINTTYLIB = -lncurses\)|\1|' \
29 -e 's|^WINTTYLIB = -ltermlib|#&|' -i Makefile
31 sed -e '/^GAMEUID\s*=/ s|games|root|' \
32 -e '/^GAMEGRP\s*=/ s|bin|root|' \
33 -e '/^SHELLDIR\s*=/ s|/games|/bin|' \
34 -e '/GAMEDIR/ s|/local/slashemdir|/share/slashem|' \
35 -e '/SHELLDIR/ s|/local/bin|/bin|' -i Makefile
38 make PREFIX=${pkgdir}/usr install
39 sed -e 's|HACKDIR=.*/pkg/usr/|HACKDIR=/usr/|' \
40 -i ${pkgdir}/usr/bin/slashem
41 install -Dm644 dat/license ${pkgdir}/usr/share/licenses/$pkgname/license