wok-current view rogue/receipt @ rev 22903

updated gtk-xfce-engine (2.8.1 -> 3.2.0)
author Hans-G?nter Theisgen
date Sun Feb 23 16:42:46 2020 +0100 (2020-02-23)
parents 6135577f4d08
children 7c0170dd3ecc
line source
1 # SliTaz package receipt.
3 PACKAGE="rogue"
4 VERSION="5.4.4"
5 CATEGORY="non-free"
6 SHORT_DESC="The classic dungeon exploration game"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE$VERSION-src.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/"
11 WGET_URL="http://rogue.rogueforge.net/files/rogue${VERSION%.*}/$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -ltinfo"
21 # ncurses TERMINAL struct is opaque now
22 sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \
23 mdport.c
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --enable-wizardmode \
29 --enable-scorefile=/usr/games/rogue.scr \
30 --enable-lockfile=/var/lock/rogue.lck \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/rogue
39 mkdir -p $fs/usr/games
40 mkdir -p $fs/usr/share/licenses
41 mkdir -p $fs/usr/share/pixmaps
42 mkdir -p $fs/usr/share/applications
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/games/rogue.scr $fs/usr/games/
45 chmod 666 $fs/usr/games/rogue.scr
46 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt
47 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue
48 cp -a $src/rogue.png $fs/usr/share/pixmaps
49 sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop
50 cp -a $src/rogue.desktop $fs/usr/share/applications
51 }