wok annotate spaceinvaders/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents c470ca10c896
children
rev   line source
pascal@23922 1 # SliTaz package receipt.
pascal@23922 2
pascal@23922 3 PACKAGE="spaceinvaders"
pascal@25604 4 VERSION="20140330"
pascal@23922 5 GITTAG="51edabf0b3af6d9e224360ae9e7f4502ac15fc84"
pascal@23922 6 CATEGORY="games"
pascal@23922 7 SHORT_DESC="Invader game in html5"
pascal@23922 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23922 9 LICENSE="MIT"
pascal@23922 10 WEB_SITE="https://github.com/StrykerKKD/SpaceInvaders"
pascal@23922 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@23922 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
pascal@23922 13 HOST_ARCH="any"
pascal@23922 14
pascal@24497 15 # What is the latest version available today?
pascal@24497 16 current_version()
pascal@24497 17 {
pascal@24497 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@25676 19 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
pascal@24497 20 }
pascal@24497 21
pascal@23922 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23922 23 genpkg_rules()
pascal@23922 24 {
pascal@23922 25 mkdir -p $fs/var/www/spaceinvaders $fs/usr/share/applications
pascal@23922 26 cp -a $src/[a-z]* $fs/var/www/spaceinvaders
pascal@23922 27 chown -R 80.80 $fs/var/www/spaceinvaders
pascal@23922 28 cat > $fs/usr/share/applications/spaceinvaders.desktop <<EOT
pascal@23922 29 [Desktop Entry]
pascal@23922 30 Type=Application
pascal@23922 31 Name=Space invaders
pascal@23922 32 Exec=sh -c "url=file:///var/www/spaceinvaders/index.html; tazweb --notoolbar \$url || browser \$url"
pascal@23922 33 Terminal=false
pascal@23922 34 Categories=Game;
pascal@23922 35 Icon=applications-games
pascal@23922 36 EOT
pascal@23922 37 }