updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / nethack-combined / PKGBUILD
blobf30c72c059a004b9c0f82e25d1249fc4bd95ded6
1 # $Id: PKGBUILD 9316 2008-08-17 06:12:33Z allan $
2 # Maintainer : Jeremy O'Brien <piroko@archlinux.org>
4 pkgname=nethack-combined
5 pkgver=3.4.3
6 pkgrel=3
7 pkgdesc='Nethack with Jukka Lahtinens combined patch applied, and some sane defaults'
8 arch=('i686' 'x86_64')
9 url="http://www.nethack.org/index.html"
10 license=('custom')
11 depends=('ncurses' 'gzip')
12 provides=('nethack')
13 source=(http://downloads.sourceforge.net/sourceforge/nethack/nethack-343-src.tgz
14                 nh343jl-combined-full.diff)
15 md5sums=('21479c95990eefe7650df582426457f9'
16                  '772bc9c958a98932654d71069d7360ee')
18 build(){
19   cd "${srcdir}/nethack-${pkgver}"
20   patch -Np1 -i "${srcdir}/nh343jl-combined-full.diff" || return 1
21   make || 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