wok-undigest view nethack/receipt @ rev 76

Add libquicktime, libquicktime-dev
author Rohit Joshi <jozee@slitaz.org>
date Tue Apr 20 08:21:21 2010 -0400 (2010-04-20)
parents
children b57e551bf8eb
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 DEPENDS="ncurses"
9 BUILD_DEPENDS="ncurses-dev bison flex"
10 TARBALL="$PACKAGE-343-src.tgz"
11 WEB_SITE="http://www.nethack.org"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sh sys/unix/setup.sh x
19 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
20 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
21 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
22 sed -i "s|= /usr|= $WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg|" Makefile
23 sed -i "s|= games|= root|" Makefile
24 sed -i "s|= bin|= root|" Makefile
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib $fs/usr/bin
32 cp -a $_pkg/games/nethack $fs/usr/bin
33 cp -a $_pkg/games/lib/nethackdir $fs/usr/lib
34 sed -i "s|$WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg/games|/usr|" $fs/usr/bin/nethack
35 }