wok-next annotate nethack/receipt @ rev 19960

Remove -ltinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 17 10:14:12 2017 +0200 (2017-10-17)
parents c7c3567bd8d4
children d43bf7aae921
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 {
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 }