wok-current annotate javascript-boulderdash/receipt @ rev 24617

updated libgphoto2 and libgphoto2-dev (2.5.24 -> 2.5.29)
author Hans-G?nter Theisgen
date Mon Mar 07 09:33:31 2022 +0100 (2022-03-07)
parents d8c511e24c20
children
rev   line source
pascal@24119 1 # SliTaz package receipt.
pascal@24119 2
pascal@24119 3 PACKAGE="javascript-boulderdash"
pascal@24119 4 GITHASH="f2fca2eda636e2a072fcec6205028bf222e0710e"
pascal@24119 5 VERSION="2011"
pascal@24119 6 CATEGORY="games"
pascal@24119 7 SHORT_DESC="An HTML5 implementation of the c64 classic Boulderdash game"
pascal@24119 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24119 9 LICENSE="MIT"
pascal@24119 10 TARBALL="$PACKAGE-$VERSION.zip"
pascal@24119 11 WEB_SITE="https://github.com/jakesgordon/javascript-boulderdash"
pascal@24119 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
pascal@24119 13
pascal@24491 14 # What is the latest version available today?
pascal@24491 15 current_version()
pascal@24491 16 {
pascal@24491 17 wget -O - https://github.com/jakesgordon/javascript-boulderdash/commits/master 2>/dev/null | \
pascal@24614 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
pascal@24491 19 }
pascal@24491 20
pascal@24119 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24119 22 genpkg_rules()
pascal@24119 23 {
pascal@24119 24 mkdir -p $fs/var/www $fs/usr/share/applications
pascal@24119 25 cp -a $src $fs/var/www/$PACKAGE
pascal@24119 26 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
pascal@24119 27 [Desktop Entry]
pascal@24119 28 Type=Application
pascal@24119 29 Name=Boulder Dash
pascal@24119 30 Exec=sh -c "url=http://127.0.0.1/$PACKAGE/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
pascal@24119 31 Icon=applications-games
pascal@24119 32 Terminal=false
pascal@24119 33 Categories=Game
pascal@24119 34 EOT
pascal@24119 35 }