wok view diggerjs/receipt @ rev 22834
webgames: add loderunner & digger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 09 16:49:37 2020 +0100 (2020-02-09) |
parents | 10baa41a7882 |
children | 079887dee9fb |
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 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/var/www/digger
18 cp -a $src/* $fs/var/www/digger
19 cp -a stuff/* $fs
20 ln -s digger.html $fs/var/www/digger/index.html
22 # translate
23 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \
24 $fs/var/www/digger/*.*
26 # remove TODO stuff...
27 sed -i 's|.*HighScorefunktion programmieren|;//&|' \
28 $fs/var/www/digger/main.js
30 # remove java stuff...
31 sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js
32 sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html
33 rm -f $fs/var/www/digger/SndServer.class
34 rm -f $fs/var/www/digger/*/*.au
36 chown -R 80.80 $fs/var/www/digger
37 }