1 # Contributer: Xiangyan Sun < wishstudio@gmail.com >
7 pkgdesc='The classic Unix role-playing game - fight monsters and seek the Amulet of Yendor for your god!'
9 url="http://www.nethack.org/"
11 depends=('qt3' 'gzip' 'ncurses' 'libxaw' 'libxmu' 'libxext' 'libxt' 'libx11')
12 source=(http://downloads.sourceforge.net/nethack/nethack-343-src.tgz
15 md5sums=('21479c95990eefe7650df582426457f9'
16 'f8a168c25ad704fb79e9180275528059'
17 '6a426c8f1c2763fcbed05bb1222a584a')
20 cd ${startdir}/src/${_pkgname}-${pkgver}
21 sh sys/unix/setup.sh || return 1
23 patch -Np1 -i ../nethack-qt.patch || return 1
26 make PREFIX=${startdir}/pkg/usr install || return 1
28 sed -e 's|HACKDIR=.*/pkg/usr/|HACKDIR=/usr/|' \
29 -i ${startdir}/pkg/usr/bin/nethack-qt \
32 install -D -m 0644 dat/license \
33 ${startdir}/pkg/usr/share/licenses/${pkgname}/license \
36 install -D -m 0644 win/Qt/knh.xpm \
37 ${startdir}/pkg/usr/share/${pkgname}/knh.xpm \
40 install -D -m 0644 ${startdir}/nethack-qt.desktop \
41 ${startdir}/pkg/usr/share/applications/nethack-qt.desktop \