wok-current view nethack/receipt @ rev 16422
Add slitaz-arm-configs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 18 04:12:20 2014 +0200 (2014-04-18) |
parents | 59dd9728a07d |
children | 3ba8d2c9720d |
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 cd $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 }