wok-next view nethack/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 466bca9334ef |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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="custom"
9 WEB_SITE="http://www.nethack.org"
11 TARBALL="$PACKAGE-343-src.tgz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="ncurses-dev bison flex"
16 compile_rules() {
17 sh sys/unix/setup.sh x
18 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h
19 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile
20 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile
21 sed -i "s|= /usr|= $DESTDIR/usr|" Makefile
22 sed -i "s|= games|= root|" Makefile
23 sed -i "s|= bin|= root|" Makefile
24 sed -i '/rmdir \.\/-p/d' Makefile
25 make && make install
26 }
28 genpkg_rules() {
29 mkdir -p \
30 $fs/usr/lib/ \
31 $fs/usr/bin/
32 cp -a $install/usr/games/nethack $fs/usr/bin/
33 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib/
34 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack
35 DEPENDS="ncurses"
36 }