wok view xgalaga/receipt @ rev 21532
Up ncurses-examples (20180127) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 04 18:49:00 2019 +0200 (2019-05-04) |
parents | 5b063a7e40ae |
children | ad86373a4a8c |
line source
1 # SliTaz package receipt.
3 PACKAGE="xgalaga"
4 VERSION="2.1.1.0"
5 CATEGORY="games"
6 SHORT_DESC="A clone of the classic game Galaga for the X Window System."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://sourceforge.net/projects/xgalaga/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="xorg-libX11 xorg-libXmu xorg-libXt xorg-libXext xorg-libXpm libxcb \
14 xorg-libXau xorg-libXdmcp xorg-libSM xorg-libICE util-linux-uuid"
15 BUILD_DEPENDS="xorg-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR/usr/share/man/man6
21 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \
22 -e 's|@prefix@|/usr/share/xgalaga|' \
23 -e 's|@exec_prefix@|/usr/bin|' \
24 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
25 Makefile.in
26 ./configure $CONFIGURE_ARGS
27 sed -i -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
28 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
29 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
30 -e 's|/usr/scores|/var/games/xgalaga/scores|' \
31 config.h
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
40 cp -a $install/usr/share/xgalaga $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp $stuff/*.desktop $fs/usr/share/applications
43 }