wok view diggerjs/receipt @ rev 25450

BootProg: avoid divide errors
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 14 18:33:54 2022 +0000 (2022-09-14)
parents bd7510903310
children 73f36875e5a7
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="https://www.tikkel.de/download/$TARBALL"
13 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/lutzroeder/digger/commits/main 2>/dev/null | \
19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www/digger
26 cp -a $src/* $fs/var/www/digger
27 cp -a stuff/* $fs
29 # translate
30 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \
31 $fs/var/www/digger/*.*
33 # remove TODO stuff...
34 sed -i 's|.*HighScorefunktion programmieren|;//&|' \
35 $fs/var/www/digger/main.js
37 # remove java stuff...
38 sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js
39 sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html
40 rm -f $fs/var/www/digger/SndServer.class
41 rm -f $fs/var/www/digger/*/*.au
43 chown -R 80.80 $fs/var/www/digger
44 ln -s digger.html $fs/var/www/digger/index.html
45 }