wok-undigest rev 38
Add: nethack (ncurses)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Sat Apr 10 21:13:07 2010 +0000 (2010-04-10) |
parents | 39dcce0e6140 |
children | 0f61a68c820e |
files | nethack/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nethack/receipt Sat Apr 10 21:13:07 2010 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="nethack" 1.7 +VERSION="3.4.3" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="NetHack is a single player dungeon exploration game." 1.10 +MAINTAINER="claudinei@slitaz.org" 1.11 +DEPENDS="ncurses" 1.12 +BUILD_DEPENDS="ncurses-dev bison flex" 1.13 +TARBALL="$PACKAGE-343-src.tgz" 1.14 +WEB_SITE="http://www.nethack.org" 1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + sh sys/unix/setup.sh x 1.22 + sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h 1.23 + sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile 1.24 + sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile 1.25 + sed -i "s|= /usr|= $WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg|" Makefile 1.26 + sed -i "s|= games|= root|" Makefile 1.27 + sed -i "s|= bin|= root|" Makefile 1.28 + make && make install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr/lib $fs/usr/bin 1.35 + cp -a $_pkg/games/nethack $fs/usr/bin 1.36 + cp -a $_pkg/games/lib/nethackdir $fs/usr/lib 1.37 + sed -i "s|$WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg/games|/usr|" $fs/usr/bin/nethack 1.38 +} 1.39 +