wok annotate rogue/receipt @ rev 23593
python-pysol-cards: added build dependency
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 08 11:15:24 2020 +0100 (2020-04-08) |
parents | 6135577f4d08 |
children | 7c0170dd3ecc |
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" |
domcox@11731 | 9 TARBALL="$PACKAGE$VERSION-src.tar.gz" |
pascal@20679 | 10 WEB_SITE="https://web.archive.org/web/20160604020207/http://rogue.rogueforge.net/" |
pascal@17869 | 11 WGET_URL="http://rogue.rogueforge.net/files/rogue${VERSION%.*}/$TARBALL" |
domcox@11731 | 12 |
pascal@15601 | 13 DEPENDS="ncurses" |
pascal@15601 | 14 BUILD_DEPENDS="ncurses-dev" |
pascal@15601 | 15 |
domcox@11731 | 16 # Rules to configure and make the package. |
domcox@11731 | 17 compile_rules() |
domcox@11731 | 18 { |
pascal@17676 | 19 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@21814 | 20 |
pascal@21814 | 21 # ncurses TERMINAL struct is opaque now |
pascal@21814 | 22 sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \ |
pascal@21814 | 23 mdport.c |
pascal@21814 | 24 |
domcox@11731 | 25 ./configure \ |
domcox@11731 | 26 --prefix=/usr \ |
domcox@11731 | 27 --mandir=/usr/share/man \ |
domcox@11731 | 28 --enable-wizardmode \ |
domcox@11731 | 29 --enable-scorefile=/usr/games/rogue.scr \ |
domcox@11731 | 30 --enable-lockfile=/var/lock/rogue.lck \ |
domcox@11731 | 31 $CONFIGURE_ARGS && |
pascal@15601 | 32 make && make DESTDIR=$DESTDIR install |
domcox@11731 | 33 } |
domcox@11731 | 34 |
domcox@11731 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@11731 | 36 genpkg_rules() |
domcox@11731 | 37 { |
domcox@11731 | 38 mkdir -p $fs/usr/share/rogue |
domcox@11731 | 39 mkdir -p $fs/usr/games |
domcox@11731 | 40 mkdir -p $fs/usr/share/licenses |
domcox@11731 | 41 mkdir -p $fs/usr/share/pixmaps |
domcox@11731 | 42 mkdir -p $fs/usr/share/applications |
pascal@15601 | 43 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 44 cp -a $install/usr/games/rogue.scr $fs/usr/games/ |
domcox@11731 | 45 chmod 666 $fs/usr/games/rogue.scr |
pascal@15601 | 46 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt |
pascal@15601 | 47 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue |
domcox@11731 | 48 cp -a $src/rogue.png $fs/usr/share/pixmaps |
domcox@11731 | 49 sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop |
domcox@11731 | 50 cp -a $src/rogue.desktop $fs/usr/share/applications |
domcox@11731 | 51 } |