# HG changeset patch # User Christopher Rogers # Date 1307901626 0 # Node ID 170c0f7957a73facfd11ed8bc6d99b973c54dcef # Parent 6e03663b3fa0307be9054293e6e7c50c758bcf6f Moved nethack from wok-undigest. diff -r 6e03663b3fa0 -r 170c0f7957a7 nethack/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nethack/receipt Sun Jun 12 18:00:26 2011 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="nethack" +VERSION="3.4.3" +CATEGORY="games" +SHORT_DESC="NetHack is a single player dungeon exploration game." +MAINTAINER="claudinei@slitaz.org" +TARBALL="$PACKAGE-343-src.tgz" +WEB_SITE="http://www.nethack.org" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +DEPENDS="ncurses" +BUILD_DEPENDS="ncurses-dev bison flex" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sh sys/unix/setup.sh x + sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h + sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile + sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile + sed -i "s|= /usr|= $DESTDIR/usr|" Makefile + sed -i "s|= games|= root|" Makefile + sed -i "s|= bin|= root|" Makefile + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/bin + cp -a $install/usr/games/nethack $fs/usr/bin + cp -a $install/usr/games/lib/nethackdir $fs/usr/lib + sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack +} +