wok view boulderdash/receipt @ rev 25604

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 17:30:47 2023 +0000 (16 months ago)
parents e1e1678c5265
children a66f312c374b
line source
1 # SliTaz package receipt.
3 PACKAGE="boulderdash"
4 GITHASH="f2fca2eda636e2a072fcec6205028bf222e0710e"
5 VERSION="20111129"
6 CATEGORY="games"
7 SHORT_DESC="C64 classic Boulderdash in HTML5 and JavaScript"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://codeincomplete.com/posts/2011/10/25/javascript_boulderdash/"
12 WGET_URL="https://codeload.github.com/jakesgordon/javascript-boulderdash/zip/$GITHASH"
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 on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/applications $fs/var/www/boulderdash \
25 $install/usr/share/doc
26 cp -a $src/* $fs/var/www/boulderdash
27 mv $fs/var/www/boulderdash/README.md $install/usr/share/doc
28 cat > $fs/usr/share/applications/boulderdash.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Encoding=UTF-8
32 Name=Boulderdash
33 Exec=sh -c "url=http://127.0.0.1/boulderdash/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
34 Terminal=false
35 Categories=Application;Game;
36 EOT
37 }