wok-next view xgalaga/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 7506b35e1c6f
children 5669e8b3be70
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 WEB_SITE="https://sourceforge.net/projects/xgalaga/"
10 HOST_ARCH="i486"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="xorg-dev"
17 compile_rules() {
18 mkdir -p $install/usr/share/man/man6
19 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \
20 -e 's|@prefix@|/usr/share/xgalaga|' \
21 -e 's|@exec_prefix@|/usr/bin|' \
22 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
23 Makefile.in
24 ./configure $CONFIGURE_ARGS
25 sed \
26 -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
27 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
28 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
29 -e 's|/usr/scores|/var/games/xgalaga/scores|' \
30 -i config.h
31 make &&
32 make DESTDIR=$install install
33 }
35 genpkg_rules() {
36 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
37 cp -a $install/usr/share/xgalaga $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp $stuff/*.desktop $fs/usr/share/applications
40 DEPENDS="xorg-libX11 xorg-libXmu xorg-libXt xorg-libXext xorg-libXpm \
41 xorg-libxcb xorg-libXau xorg-libXdmcp xorg-libSM xorg-libICE util-linux-uuid"
42 }