1 # $Id: PKGBUILD 9316 2008-08-17 06:12:33Z allan $
2 # Maintainer : Jeremy O'Brien <piroko@archlinux.org>
4 pkgname=nethack-combined
7 pkgdesc='Nethack with Jukka Lahtinens combined patch applied, and some sane defaults'
9 url="http://www.nethack.org/index.html"
11 depends=('ncurses' 'gzip')
13 source=(http://downloads.sourceforge.net/sourceforge/nethack/nethack-343-src.tgz
14 nh343jl-combined-full.diff)
15 md5sums=('21479c95990eefe7650df582426457f9'
16 '772bc9c958a98932654d71069d7360ee')
19 cd "${srcdir}/nethack-${pkgver}"
20 patch -Np1 -i "${srcdir}/nh343jl-combined-full.diff" || return 1
22 make PREFIX=$startdir/pkg/usr install
23 sed -e 's|HACKDIR=.*/pkg/usr/|HACKDIR=/usr/|' -i $startdir/pkg/usr/bin/nethack
24 install -Dm644 dat/license $startdir/pkg/usr/share/licenses/$pkgname/license