wok-next view nethack/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | c7c3567bd8d4 |
children | d43bf7aae921 |
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 sh sys/unix/setup.sh x
20 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
21 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
22 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
23 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile
24 sed -i "s|= games|= root|" Makefile
25 sed -i "s|= bin|= root|" Makefile
26 sed -i '/rmdir \.\/-p/d' Makefile
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/bin
34 cp -a $install/usr/games/nethack $fs/usr/bin
35 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib
36 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
37 }