wok annotate xgalaga/receipt @ rev 25403

updated vzctl (3.0.25.1 -> 4.11.1)
author Hans-G?nter Theisgen
date Tue Aug 02 16:35:24 2022 +0100 (2022-08-02)
parents 86790a278e70
children ad0bc3efbf37
rev   line source
pascal@17342 1 # SliTaz package receipt.
pascal@17342 2
pascal@17342 3 PACKAGE="xgalaga"
pascal@17342 4 VERSION="2.1.1.0"
pascal@17342 5 CATEGORY="games"
pascal@17342 6 SHORT_DESC="A clone of the classic game Galaga for the X Window System."
pascal@17342 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17342 8 LICENSE="GPL2"
pascal@17342 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/xgalaga/"
pascal@17342 11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
pascal@17342 12
pascal@17342 13 DEPENDS="xorg-libX11 xorg-libXmu xorg-libXt xorg-libXext xorg-libXpm libxcb \
pascal@17342 14 xorg-libXau xorg-libXdmcp xorg-libSM xorg-libICE util-linux-uuid"
pascal@17342 15 BUILD_DEPENDS="xorg-dev"
pascal@17342 16
pascal@24108 17 current_version()
pascal@24108 18 {
pascal@24108 19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@24108 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
pascal@24108 21 }
pascal@24108 22
pascal@17342 23 # Rules to configure and make the package.
pascal@17342 24 compile_rules()
pascal@17342 25 {
pascal@17342 26 mkdir -p $DESTDIR/usr/share/man/man6
pascal@17342 27 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \
pascal@17342 28 -e 's|@prefix@|/usr/share/xgalaga|' \
pascal@17342 29 -e 's|@exec_prefix@|/usr/bin|' \
pascal@17342 30 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \
pascal@17342 31 Makefile.in
pascal@17345 32 ./configure $CONFIGURE_ARGS
pascal@17345 33 sed -i -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \
pascal@17345 34 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \
pascal@17345 35 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \
pascal@17345 36 -e 's|/usr/scores|/var/games/xgalaga/scores|' \
pascal@17345 37 config.h
pascal@17342 38 make &&
pascal@17342 39 make DESTDIR=$DESTDIR install
pascal@17342 40 }
pascal@17342 41
pascal@17342 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17342 43 genpkg_rules()
pascal@17342 44 {
pascal@17345 45 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores
pascal@17342 46 cp -a $install/usr/share/xgalaga $fs/usr/share
pascal@17342 47 cp -a $install/usr/bin $fs/usr
pascal@17345 48 cp $stuff/*.desktop $fs/usr/share/applications
pascal@17342 49 }
pascal@17342 50