wok-6.x annotate xgalaga/receipt @ rev 25510
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 20:36:56 2023 +0000 (23 months ago) |
parents | ad0bc3efbf37 |
children |
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@25510 | 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@25457 | 17 # What is the latest version available today? |
pascal@24108 | 18 current_version() |
pascal@24108 | 19 { |
pascal@24108 | 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24108 | 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q" |
pascal@24108 | 22 } |
pascal@24108 | 23 |
pascal@17342 | 24 # Rules to configure and make the package. |
pascal@17342 | 25 compile_rules() |
pascal@17342 | 26 { |
pascal@17342 | 27 mkdir -p $DESTDIR/usr/share/man/man6 |
pascal@17342 | 28 sed -i -e 's|\$(mandir)|$(DESTDIR)&|' \ |
pascal@17342 | 29 -e 's|@prefix@|/usr/share/xgalaga|' \ |
pascal@17342 | 30 -e 's|@exec_prefix@|/usr/bin|' \ |
pascal@17342 | 31 -e 's|@CREDITSFILE@|/usr/share/xgalaga/CREDITS|' \ |
pascal@17342 | 32 Makefile.in |
pascal@17345 | 33 ./configure $CONFIGURE_ARGS |
pascal@17345 | 34 sed -i -e 's|/usr/sounds/|/usr/share/xgalaga/sounds/|' \ |
pascal@17345 | 35 -e 's|/usr/levels/|/usr/share/xgalaga/levels/|' \ |
pascal@17345 | 36 -e 's|/usr/CREDITS|/usr/share/xgalaga/CREDITS|' \ |
pascal@17345 | 37 -e 's|/usr/scores|/var/games/xgalaga/scores|' \ |
pascal@17345 | 38 config.h |
pascal@17342 | 39 make && |
pascal@17342 | 40 make DESTDIR=$DESTDIR install |
pascal@17342 | 41 } |
pascal@17342 | 42 |
pascal@17342 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17342 | 44 genpkg_rules() |
pascal@17342 | 45 { |
pascal@17345 | 46 mkdir -p $fs/usr/share/applications $fs/var/games/xgalaga/scores |
pascal@17342 | 47 cp -a $install/usr/share/xgalaga $fs/usr/share |
pascal@17342 | 48 cp -a $install/usr/bin $fs/usr |
pascal@17345 | 49 cp $stuff/*.desktop $fs/usr/share/applications |
pascal@17342 | 50 } |
pascal@17342 | 51 |