wok view nethack/receipt @ rev 19191

pygobject3: create ./libtool hack
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 10:06:19 2016 +0200 (2016-06-05)
parents 3ba8d2c9720d
children e2073ef01171
line source
1 # SliTaz package receipt.
3 PACKAGE="nethack"
4 VERSION="3.4.3"
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 }