wok view xgalaga/receipt @ rev 25723
added recipe for xfce4-mixer-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 17 16:43:37 2024 +0100 (2 months ago) |
parents | ad0bc3efbf37 |
children | 73f1da798682 |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR/usr/share/man/man6
28 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \
29 -e 's|@prefix@|/usr/share/xgalaga|' \
30 -e 's|@exec_prefix@|/usr/bin|' \
31 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
32 Makefile.in
33 ./configure $CONFIGURE_ARGS
34 sed -i -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
35 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
36 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
37 -e 's|/usr/scores|/var/games/xgalaga/scores|' \
38 config.h
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
47 cp -a $install/usr/share/xgalaga $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp $stuff/*.desktop $fs/usr/share/applications
50 }