wok-6.x annotate nethack/receipt @ rev 15536
Up: firefox-langpack-da (17.0.11esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 24 17:36:21 2013 +0100 (2013-11-24) |
parents | 170c0f7957a7 |
children | 23c3aed67cd9 |
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 |
pascal@15168 | 26 sed -i '/rmdir \.\/-p/d' Makefile |
slaxemulator@10853 | 27 make && make install |
slaxemulator@10853 | 28 } |
slaxemulator@10853 | 29 |
slaxemulator@10853 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10853 | 31 genpkg_rules() |
slaxemulator@10853 | 32 { |
slaxemulator@10853 | 33 mkdir -p $fs/usr/lib $fs/usr/bin |
slaxemulator@10853 | 34 cp -a $install/usr/games/nethack $fs/usr/bin |
slaxemulator@10853 | 35 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib |
slaxemulator@10853 | 36 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack |
slaxemulator@10853 | 37 } |
slaxemulator@10853 | 38 |