wok-current annotate rogue/receipt @ rev 25075
created recipe for alsa-ucm-conf
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 14 07:07:03 2022 +0100 (2022-06-14) |
parents | 7c0170dd3ecc |
children |
rev | line source |
---|---|
domcox@11731 | 1 # SliTaz package receipt. |
domcox@11731 | 2 |
domcox@11731 | 3 PACKAGE="rogue" |
domcox@11731 | 4 VERSION="5.4.4" |
domcox@11731 | 5 CATEGORY="non-free" |
domcox@11731 | 6 SHORT_DESC="The classic dungeon exploration game" |
domcox@11731 | 7 MAINTAINER="domcox@slitaz.org" |
pascal@15601 | 8 LICENSE="BSD" |
pascal@24998 | 9 TARBALL="$PACKAGE$-vVERSION.tar.gz" |
pascal@20679 | 10 WEB_SITE="https://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/" |
pascal@24998 | 11 WGET_URL="https://gitlab.com/philhsmith/rogue/-/archive/v$VERSION/$TARBALL" |
domcox@11731 | 12 |
pascal@15601 | 13 DEPENDS="ncurses" |
pascal@15601 | 14 BUILD_DEPENDS="ncurses-dev" |
pascal@15601 | 15 |
pascal@24535 | 16 # What is the latest version available today? |
pascal@24535 | 17 current_version() |
pascal@24535 | 18 { |
pascal@24535 | 19 wget -O - https://github.com/Davidslv/rogue/releases 2>/dev/null | \ |
pascal@24535 | 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24535 | 21 } |
pascal@24535 | 22 |
domcox@11731 | 23 # Rules to configure and make the package. |
domcox@11731 | 24 compile_rules() |
domcox@11731 | 25 { |
pascal@17676 | 26 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@21814 | 27 |
pascal@21814 | 28 # ncurses TERMINAL struct is opaque now |
pascal@21814 | 29 sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \ |
pascal@21814 | 30 mdport.c |
pascal@21814 | 31 |
domcox@11731 | 32 ./configure \ |
domcox@11731 | 33 --prefix=/usr \ |
domcox@11731 | 34 --mandir=/usr/share/man \ |
domcox@11731 | 35 --enable-wizardmode \ |
domcox@11731 | 36 --enable-scorefile=/usr/games/rogue.scr \ |
domcox@11731 | 37 --enable-lockfile=/var/lock/rogue.lck \ |
domcox@11731 | 38 $CONFIGURE_ARGS && |
pascal@15601 | 39 make && make DESTDIR=$DESTDIR install |
domcox@11731 | 40 } |
domcox@11731 | 41 |
domcox@11731 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@11731 | 43 genpkg_rules() |
domcox@11731 | 44 { |
domcox@11731 | 45 mkdir -p $fs/usr/share/rogue |
domcox@11731 | 46 mkdir -p $fs/usr/games |
domcox@11731 | 47 mkdir -p $fs/usr/share/licenses |
domcox@11731 | 48 mkdir -p $fs/usr/share/pixmaps |
domcox@11731 | 49 mkdir -p $fs/usr/share/applications |
pascal@15601 | 50 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 51 cp -a $install/usr/games/rogue.scr $fs/usr/games/ |
domcox@11731 | 52 chmod 666 $fs/usr/games/rogue.scr |
pascal@15601 | 53 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt |
pascal@15601 | 54 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue |
domcox@11731 | 55 cp -a $src/rogue.png $fs/usr/share/pixmaps |
domcox@11731 | 56 sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop |
domcox@11731 | 57 cp -a $src/rogue.desktop $fs/usr/share/applications |
domcox@11731 | 58 } |