wok view javascript-boulderdash/receipt @ rev 24534

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