wok-current view boulderdash/receipt @ rev 25705
Up miss usbip, usbip-dev to 5.10.217
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 20 14:49:05 2024 +0000 (7 months ago) |
parents | d8c511e24c20 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="boulderdash"
4 VERSION="0"
5 CATEGORY="games"
6 SHORT_DESC="C64 classic Boulderdash in HTML5 and JavaScript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.zip"
10 WEB_SITE="https://codeincomplete.com/posts/2011/10/25/javascript_boulderdash/"
11 WGET_URL="https://codeload.github.com/jakesgordon/javascript-boulderdash/zip/master"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - https://github.com/jakesgordon/javascript-boulderdash/commits/master 2>/dev/null | \
17 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share/applications $fs/var/www/boulderdash \
24 $install/usr/share/doc
25 cp -a $src/* $fs/var/www/boulderdash
26 mv $fs/var/www/boulderdash/README.md $install/usr/share/doc
27 cat > $fs/usr/share/applications/boulderdash.desktop <<EOT
28 [Desktop Entry]
29 Type=Application
30 Encoding=UTF-8
31 Name=Boulderdash
32 Exec=sh -c "url=http://127.0.0.1/boulderdash/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
33 Terminal=false
34 Categories=Application;Game;
35 EOT
36 }