# SliTaz package receipt. PACKAGE="rogue" VERSION="5.4.4" CATEGORY="non-free" SHORT_DESC="The classic dungeon exploration game" MAINTAINER="domcox@slitaz.org" LICENSE="BSD" TARBALL="$PACKAGE$-vVERSION.tar.gz" WEB_SITE="https://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/" WGET_URL="https://gitlab.com/philhsmith/rogue/-/archive/v$VERSION/$TARBALL" DEPENDS="ncurses" BUILD_DEPENDS="ncurses-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/Davidslv/rogue/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" # ncurses TERMINAL struct is opaque now sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \ mdport.c ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-wizardmode \ --enable-scorefile=/usr/games/rogue.scr \ --enable-lockfile=/var/lock/rogue.lck \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/rogue mkdir -p $fs/usr/games mkdir -p $fs/usr/share/licenses mkdir -p $fs/usr/share/pixmaps mkdir -p $fs/usr/share/applications cp -a $install/usr/bin $fs/usr cp -a $install/usr/games/rogue.scr $fs/usr/games/ chmod 666 $fs/usr/games/rogue.scr cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue cp -a $src/rogue.png $fs/usr/share/pixmaps sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop cp -a $src/rogue.desktop $fs/usr/share/applications }