wok-next view nethack/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d43bf7aae921 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nethack"
4 VERSION="3.4.3"
5 CATEGORY="games"
6 SHORT_DESC="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|= $install/usr|" Makefile
22 sed -i "s|= games|= root|" Makefile
23 sed -i "s|= bin|= root|" Makefile
24 sed -i '/rmdir \.\/-p/d' Makefile
26 make &&
27 make install
28 }
30 genpkg_rules() {
31 mkdir -p \
32 $fs/usr/lib/ \
33 $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 DEPENDS="ncurses"
38 }