wok-6.x view nethack/receipt @ rev 24254
updated perl-test-compile (2.4.0 -> 3.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 09:57:13 2022 +0100 (2022-01-02) |
parents | c7c3567bd8d4 |
children | afae00265386 |
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|lncurses|& -ltinfo|' sys/unix/Makefile.src
20 sh sys/unix/setup.sh x
21 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
22 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
23 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
24 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile
25 sed -i "s|= games|= root|" Makefile
26 sed -i "s|= bin|= root|" Makefile
27 sed -i '/rmdir \.\/-p/d' Makefile
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin
35 cp -a $install/usr/games/nethack $fs/usr/bin
36 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
37 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
38 }