wok-current view diggerjs/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | c11594098e34 |
children | 62d43c1b8453 |
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"
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 }