wok view rogue/receipt @ rev 24178
created recipe for perl-file-sharedir-install
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 06:33:57 2021 +0100 (2021-12-31) |
parents | 6135577f4d08 |
children | 7c0170dd3ecc |
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -ltinfo"
21 # ncurses TERMINAL struct is opaque now
22 sed -i 's|cur_term->type.Strings|((TERMTYPE *) (cur_term))->Strings|' \
23 mdport.c
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --enable-wizardmode \
29 --enable-scorefile=/usr/games/rogue.scr \
30 --enable-lockfile=/var/lock/rogue.lck \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/rogue
39 mkdir -p $fs/usr/games
40 mkdir -p $fs/usr/share/licenses
41 mkdir -p $fs/usr/share/pixmaps
42 mkdir -p $fs/usr/share/applications
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/games/rogue.scr $fs/usr/games/
45 chmod 666 $fs/usr/games/rogue.scr
46 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/LICENSE.TXT $fs/usr/share/licenses/rogue.txt
47 cp -a $install/usr/share/doc/$PACKAGE-$VERSION/rogue.html $fs/usr/share/rogue
48 cp -a $src/rogue.png $fs/usr/share/pixmaps
49 sed -i 's/Exec.*/Exec=xterm -e rogue/' $src/rogue.desktop
50 cp -a $src/rogue.desktop $fs/usr/share/applications
51 }