wok view nethack/receipt @ rev 15224

gdb: remove wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 22 15:13:40 2013 +0200 (2013-09-22)
parents 170c0f7957a7
children 23c3aed67cd9
line source
1 # SliTaz package receipt.
3 PACKAGE="nethack"
4 VERSION="3.4.3"
5 CATEGORY="games"
6 SHORT_DESC="NetHack is a single player dungeon exploration game."
7 MAINTAINER="claudinei@slitaz.org"
8 TARBALL="$PACKAGE-343-src.tgz"
9 WEB_SITE="http://www.nethack.org"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="ncurses"
13 BUILD_DEPENDS="ncurses-dev bison flex"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sh sys/unix/setup.sh x
20 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
21 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
22 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
23 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile
24 sed -i "s|= games|= root|" Makefile
25 sed -i "s|= bin|= root|" Makefile
26 sed -i '/rmdir \.\/-p/d' Makefile
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/bin
34 cp -a $install/usr/games/nethack $fs/usr/bin
35 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
36 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
37 }