wok annotate nethack/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | afae00265386 |
children | 1e09c4c56491 |
rev | line source |
---|---|
slaxemulator@10853 | 1 # SliTaz package receipt. |
slaxemulator@10853 | 2 |
slaxemulator@10853 | 3 PACKAGE="nethack" |
pascal@23975 | 4 VERSION="3.6.6" |
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 |
pascal@24402 | 16 # What is the latest version available today? |
pascal@24402 | 17 current_version() |
pascal@24402 | 18 { |
pascal@24414 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24414 | 20 sed '/version/!d;s|.*sion ||;s|<.*||' |
pascal@24402 | 21 } |
pascal@24402 | 22 |
slaxemulator@10853 | 23 # Rules to configure and make the package. |
slaxemulator@10853 | 24 compile_rules() |
slaxemulator@10853 | 25 { |
pascal@17673 | 26 sed -i 's|lncurses|& -ltinfo|' sys/unix/Makefile.src |
slaxemulator@10853 | 27 sh sys/unix/setup.sh x |
slaxemulator@10853 | 28 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h |
slaxemulator@10853 | 29 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile |
slaxemulator@10853 | 30 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile |
slaxemulator@10853 | 31 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile |
slaxemulator@10853 | 32 sed -i "s|= games|= root|" Makefile |
slaxemulator@10853 | 33 sed -i "s|= bin|= root|" Makefile |
pascal@15168 | 34 sed -i '/rmdir \.\/-p/d' Makefile |
slaxemulator@10853 | 35 make && make install |
slaxemulator@10853 | 36 } |
slaxemulator@10853 | 37 |
slaxemulator@10853 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10853 | 39 genpkg_rules() |
slaxemulator@10853 | 40 { |
slaxemulator@10853 | 41 mkdir -p $fs/usr/lib $fs/usr/bin |
slaxemulator@10853 | 42 cp -a $install/usr/games/nethack $fs/usr/bin |
slaxemulator@10853 | 43 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib |
slaxemulator@10853 | 44 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack |
slaxemulator@10853 | 45 } |