wok view xgalaga/receipt @ rev 24185
updated perl-common-sense (3.74 -> 3.75)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 14:04:57 2021 +0100 (2021-12-31) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
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 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir -p $DESTDIR/usr/share/man/man6
27 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \
28 -e 's|@prefix@|/usr/share/xgalaga|' \
29 -e 's|@exec_prefix@|/usr/bin|' \
30 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
31 Makefile.in
32 ./configure $CONFIGURE_ARGS
33 sed -i -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
34 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
35 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
36 -e 's|/usr/scores|/var/games/xgalaga/scores|' \
37 config.h
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
46 cp -a $install/usr/share/xgalaga $fs/usr/share
47 cp -a $install/usr/bin $fs/usr
48 cp $stuff/*.desktop $fs/usr/share/applications
49 }