wok view diggerjs/receipt @ rev 24586

updated gawk (5.0.1 -> 5.1.1)
author Hans-G?nter Theisgen
date Mon Feb 28 09:01:30 2022 +0100 (2022-02-28)
parents 079887dee9fb
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="diggerjs"
4 VERSION="0.9.6"
5 CATEGORY="games"
6 SHORT_DESC="Javascript BoulerDash/Digger clone."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="unknown"
9 SOURCE="digger.js"
10 TARBALL="$SOURCE-$VERSION.zip"
11 WEB_SITE="http://www.heise.de/software/download/digger.js/8148"
12 WGET_URL="http://www.tikkel.de/download/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://github.com/lutzroeder/digger/commits/main 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/var/www/digger
25 cp -a $src/* $fs/var/www/digger
26 cp -a stuff/* $fs
28 # translate
29 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \
30 $fs/var/www/digger/*.*
32 # remove TODO stuff...
33 sed -i 's|.*HighScorefunktion programmieren|;//&|' \
34 $fs/var/www/digger/main.js
36 # remove java stuff...
37 sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js
38 sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html
39 rm -f $fs/var/www/digger/SndServer.class
40 rm -f $fs/var/www/digger/*/*.au
42 chown -R 80.80 $fs/var/www/digger
43 ln -s digger.html $fs/var/www/digger/index.html
44 }