wok-6.x annotate javascript-boulderdash/receipt @ rev 24539
updated fbgrab (1.3 -> 1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:32:13 2022 +0100 (2022-02-23) |
parents | e9e5645c2329 |
children | bc2b9d9bed6f |
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@24491 | 18 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
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 } |