wok view rogue/receipt @ rev 24768
libwebkit: bison 3 fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 12:46:44 2022 +0000 (2022-03-19) |
parents | 91e30acbe640 |
children | 0aa534391a15 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/Davidslv/rogue/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -ltinfo"
28 # ncurses TERMINAL struct is opaque now
29 sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \
30 mdport.c
32 ./configure \
33 --prefix=/usr \
34 --mandir=/usr/share/man \
35 --enable-wizardmode \
36 --enable-scorefile=/usr/games/rogue.scr \
37 --enable-lockfile=/var/lock/rogue.lck \
38 $CONFIGURE_ARGS &&
39 make && make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/rogue
46 mkdir -p $fs/usr/games
47 mkdir -p $fs/usr/share/licenses
48 mkdir -p $fs/usr/share/pixmaps
49 mkdir -p $fs/usr/share/applications
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/games/rogue.scr $fs/usr/games/
52 chmod 666 $fs/usr/games/rogue.scr
53 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt
54 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue
55 cp -a $src/rogue.png $fs/usr/share/pixmaps
56 sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop
57 cp -a $src/rogue.desktop $fs/usr/share/applications
58 }