wok-next annotate 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 |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
slaxemulator@10853 | 2 |
slaxemulator@10853 | 3 PACKAGE="nethack" |
slaxemulator@10853 | 4 VERSION="3.4.3" |
slaxemulator@10853 | 5 CATEGORY="games" |
al@21020 | 6 SHORT_DESC="Single-player dungeon exploration game" |
slaxemulator@10853 | 7 MAINTAINER="claudinei@slitaz.org" |
al@20513 | 8 LICENSE="custom" |
al@21020 | 9 WEB_SITE="http://www.nethack.org/" |
al@20513 | 10 |
slaxemulator@10853 | 11 TARBALL="$PACKAGE-343-src.tgz" |
slaxemulator@10853 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@10853 | 13 |
slaxemulator@10853 | 14 BUILD_DEPENDS="ncurses-dev bison flex" |
slaxemulator@10853 | 15 |
al@20513 | 16 compile_rules() { |
slaxemulator@10853 | 17 sh sys/unix/setup.sh x |
slaxemulator@10853 | 18 sed -i "s|\/\* #define LINUX \*\/|#define LINUX|" include/unixconf.h |
slaxemulator@10853 | 19 sed -i "s|WINTTYLIB = -ltermlib|# WINTTYLIB = -ltermlib|" src/Makefile |
slaxemulator@10853 | 20 sed -i "s|# WINTTYLIB = -lncurses|WINTTYLIB = -lncurses|" src/Makefile |
al@21020 | 21 sed -i "s|= /usr|= $install/usr|" Makefile |
slaxemulator@10853 | 22 sed -i "s|= games|= root|" Makefile |
slaxemulator@10853 | 23 sed -i "s|= bin|= root|" Makefile |
pascal@15168 | 24 sed -i '/rmdir \.\/-p/d' Makefile |
al@21020 | 25 |
al@21020 | 26 make && |
al@21020 | 27 make install |
slaxemulator@10853 | 28 } |
slaxemulator@10853 | 29 |
al@20513 | 30 genpkg_rules() { |
al@20513 | 31 mkdir -p \ |
al@20513 | 32 $fs/usr/lib/ \ |
al@20513 | 33 $fs/usr/bin/ |
al@20513 | 34 cp -a $install/usr/games/nethack $fs/usr/bin/ |
al@20513 | 35 cp -a $install/usr/games/lib/nethackdir $fs/usr/lib/ |
slaxemulator@10853 | 36 sed -i "s|$install/usr/games|/usr|" $fs/usr/bin/nethack |
al@20513 | 37 DEPENDS="ncurses" |
slaxemulator@10853 | 38 } |