wok view nethack/receipt @ rev 25005
updated ntl (11.4.3 -> 11.5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:29:07 2022 +0100 (2022-05-16) |
parents | afae00265386 |
children | 1e09c4c56491 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nethack"
4 VERSION="3.6.6"
5 CATEGORY="games"
6 SHORT_DESC="NetHack is a single player dungeon exploration game."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="nethack"
9 TARBALL="$PACKAGE-343-src.tgz"
10 WEB_SITE="http://www.nethack.org"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev bison flex"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/version/!d;s|.*sion ||;s|<.*||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|lncurses|& -ltinfo|' sys/unix/Makefile.src
27 sh sys/unix/setup.sh x
28 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
29 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
30 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
31 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile
32 sed -i "s|= games|= root|" Makefile
33 sed -i "s|= bin|= root|" Makefile
34 sed -i '/rmdir \.\/-p/d' Makefile
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs/usr/bin
42 cp -a $install/usr/games/nethack $fs/usr/bin
43 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
44 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
45 }