wok-6.x view rogue/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (20 months ago)
parents 7c0170dd3ecc
children
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$-vVERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/"
11 WGET_URL="https://gitlab.com/philhsmith/rogue/-/archive/v$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 }