wok-6.x annotate nethack/receipt @ rev 17739
fatback: rebuild configure
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 17:02:15 2015 +0100 (2015-03-06) |
parents | 3ba8d2c9720d |
children | e2073ef01171 |
rev | line source |
---|---|
slaxemulator@10853 | 1 # SliTaz package receipt. |
slaxemulator@10853 | 2 |
slaxemulator@10853 | 3 PACKAGE="nethack" |
slaxemulator@10853 | 4 VERSION="3.4.3" |
slaxemulator@10853 | 5 CATEGORY="games" |
slaxemulator@10853 | 6 SHORT_DESC="NetHack is a single player dungeon exploration game." |
slaxemulator@10853 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15601 | 8 LICENSE="nethack" |
slaxemulator@10853 | 9 TARBALL="$PACKAGE-343-src.tgz" |
slaxemulator@10853 | 10 WEB_SITE="http://www.nethack.org" |
slaxemulator@10853 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@10853 | 12 |
slaxemulator@10853 | 13 DEPENDS="ncurses" |
slaxemulator@10853 | 14 BUILD_DEPENDS="ncurses-dev bison flex" |
slaxemulator@10853 | 15 |
slaxemulator@10853 | 16 # Rules to configure and make the package. |
slaxemulator@10853 | 17 compile_rules() |
slaxemulator@10853 | 18 { |
pascal@17673 | 19 sed -i 's|lncurses|& -ltinfo|' sys/unix/Makefile.src |
slaxemulator@10853 | 20 sh sys/unix/setup.sh x |
slaxemulator@10853 | 21 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h |
slaxemulator@10853 | 22 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile |
slaxemulator@10853 | 23 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile |
slaxemulator@10853 | 24 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile |
slaxemulator@10853 | 25 sed -i "s|= games|= root|" Makefile |
slaxemulator@10853 | 26 sed -i "s|= bin|= root|" Makefile |
pascal@15168 | 27 sed -i '/rmdir \.\/-p/d' Makefile |
slaxemulator@10853 | 28 make && make install |
slaxemulator@10853 | 29 } |
slaxemulator@10853 | 30 |
slaxemulator@10853 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10853 | 32 genpkg_rules() |
slaxemulator@10853 | 33 { |
slaxemulator@10853 | 34 mkdir -p $fs/usr/lib $fs/usr/bin |
slaxemulator@10853 | 35 cp -a $install/usr/games/nethack $fs/usr/bin |
slaxemulator@10853 | 36 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib |
slaxemulator@10853 | 37 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack |
slaxemulator@10853 | 38 } |