wok-undigest annotate nethack/receipt @ rev 203
vzquota: Add patch file
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Jan 02 22:33:48 2011 +0100 (2011-01-02) |
parents | |
children | b57e551bf8eb |
rev | line source |
---|---|
claudinei@38 | 1 # SliTaz package receipt. |
claudinei@38 | 2 |
claudinei@38 | 3 PACKAGE="nethack" |
claudinei@38 | 4 VERSION="3.4.3" |
claudinei@38 | 5 CATEGORY="games" |
claudinei@38 | 6 SHORT_DESC="NetHack is a single player dungeon exploration game." |
claudinei@38 | 7 MAINTAINER="claudinei@slitaz.org" |
claudinei@38 | 8 DEPENDS="ncurses" |
claudinei@38 | 9 BUILD_DEPENDS="ncurses-dev bison flex" |
claudinei@38 | 10 TARBALL="$PACKAGE-343-src.tgz" |
claudinei@38 | 11 WEB_SITE="http://www.nethack.org" |
claudinei@38 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
claudinei@38 | 13 |
claudinei@38 | 14 # Rules to configure and make the package. |
claudinei@38 | 15 compile_rules() |
claudinei@38 | 16 { |
claudinei@38 | 17 cd $src |
claudinei@38 | 18 sh sys/unix/setup.sh x |
claudinei@38 | 19 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h |
claudinei@38 | 20 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile |
claudinei@38 | 21 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile |
claudinei@38 | 22 sed -i "s|= /usr|= $WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg|" Makefile |
claudinei@38 | 23 sed -i "s|= games|= root|" Makefile |
claudinei@38 | 24 sed -i "s|= bin|= root|" Makefile |
claudinei@38 | 25 make && make install |
claudinei@38 | 26 } |
claudinei@38 | 27 |
claudinei@38 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@38 | 29 genpkg_rules() |
claudinei@38 | 30 { |
claudinei@38 | 31 mkdir -p $fs/usr/lib $fs/usr/bin |
claudinei@38 | 32 cp -a $_pkg/games/nethack $fs/usr/bin |
claudinei@38 | 33 cp -a $_pkg/games/lib/nethackdir $fs/usr/lib |
claudinei@38 | 34 sed -i "s|$WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg/games|/usr|" $fs/usr/bin/nethack |
claudinei@38 | 35 } |
claudinei@38 | 36 |