wok view nethack/receipt @ rev 12834
dropbear: prepa for ARM and SCPPROGRESS=1
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 22 17:21:11 2012 +0200 (2012-05-22) |
parents | |
children | 59dd9728a07d |
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 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $fs/usr/bin
33 cp -a $install/usr/games/nethack $fs/usr/bin
34 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
35 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
36 }