wok view xgalaga/receipt @ rev 24867

updated lvm2, lvm2-dev, libdevmapper and libdevmapper-dev (2.03.08 -> 2.03.15)
author Hans-G?nter Theisgen
date Wed Mar 30 17:27:13 2022 +0100 (2022-03-30)
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 }