wok-next rev 10853

Moved nethack from wok-undigest.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jun 12 18:00:26 2011 +0000 (2011-06-12)
parents 6e03663b3fa0
children d38b56c16efd
files nethack/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nethack/receipt	Sun Jun 12 18:00:26 2011 +0000
     1.3 @@ -0,0 +1,37 @@
     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 +TARBALL="$PACKAGE-343-src.tgz"
    1.12 +WEB_SITE="http://www.nethack.org"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +DEPENDS="ncurses"
    1.16 +BUILD_DEPENDS="ncurses-dev bison flex"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	sh sys/unix/setup.sh x
    1.23 +	sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
    1.24 +	sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
    1.25 +	sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
    1.26 +	sed -i "s|= /usr|= $DESTDIR/usr|" Makefile	
    1.27 +	sed -i "s|= games|= root|" Makefile
    1.28 +	sed -i "s|= bin|= root|" Makefile
    1.29 +	make && make install
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr/lib $fs/usr/bin
    1.36 +	cp -a $install/usr/games/nethack  $fs/usr/bin
    1.37 +	cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
    1.38 +	sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
    1.39 +}
    1.40 +