wok-6.x view nethack/receipt @ rev 12846
Up: ffmpeg (0.10.3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 23 13:00:15 2012 +0200 (2012-05-23) |
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 }