wok-6.x annotate nethack/receipt @ rev 10885
miro: add desktop entry
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 01 11:02:42 2011 +0200 (2011-07-01) |
parents | |
children | 59dd9728a07d |
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" |
slaxemulator@10853 | 8 TARBALL="$PACKAGE-343-src.tgz" |
slaxemulator@10853 | 9 WEB_SITE="http://www.nethack.org" |
slaxemulator@10853 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@10853 | 11 |
slaxemulator@10853 | 12 DEPENDS="ncurses" |
slaxemulator@10853 | 13 BUILD_DEPENDS="ncurses-dev bison flex" |
slaxemulator@10853 | 14 |
slaxemulator@10853 | 15 # Rules to configure and make the package. |
slaxemulator@10853 | 16 compile_rules() |
slaxemulator@10853 | 17 { |
slaxemulator@10853 | 18 cd $src |
slaxemulator@10853 | 19 sh sys/unix/setup.sh x |
slaxemulator@10853 | 20 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h |
slaxemulator@10853 | 21 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile |
slaxemulator@10853 | 22 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile |
slaxemulator@10853 | 23 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile |
slaxemulator@10853 | 24 sed -i "s|= games|= root|" Makefile |
slaxemulator@10853 | 25 sed -i "s|= bin|= root|" Makefile |
slaxemulator@10853 | 26 make && make install |
slaxemulator@10853 | 27 } |
slaxemulator@10853 | 28 |
slaxemulator@10853 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10853 | 30 genpkg_rules() |
slaxemulator@10853 | 31 { |
slaxemulator@10853 | 32 mkdir -p $fs/usr/lib $fs/usr/bin |
slaxemulator@10853 | 33 cp -a $install/usr/games/nethack $fs/usr/bin |
slaxemulator@10853 | 34 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib |
slaxemulator@10853 | 35 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack |
slaxemulator@10853 | 36 } |
slaxemulator@10853 | 37 |