wok annotate diggerjs/receipt @ rev 22836

dukto: normalize $VERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 10 15:18:14 2020 +0100 (2020-02-10)
parents 75868251b117
children c11594098e34
rev   line source
pascal@9985 1 # SliTaz package receipt.
pascal@9985 2
pascal@9985 3 PACKAGE="diggerjs"
pascal@9985 4 VERSION="0.9.6"
pascal@9985 5 CATEGORY="games"
pascal@9985 6 SHORT_DESC="Javascript BoulerDash/Digger clone."
pascal@9985 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16660 8 LICENSE="unknown"
pascal@9985 9 SOURCE="digger.js"
pascal@9985 10 TARBALL="$SOURCE-$VERSION.zip"
pascal@9985 11 WEB_SITE="http://www.heise.de/software/download/digger.js/8148"
pascal@9985 12 WGET_URL="http://www.tikkel.de/download/$TARBALL"
pascal@9985 13
pascal@9985 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@9985 15 genpkg_rules()
pascal@9985 16 {
pascal@22834 17 mkdir -p $fs/var/www/digger
pascal@22834 18 cp -a $src/* $fs/var/www/digger
pascal@9985 19 cp -a stuff/* $fs
pascal@9985 20
pascal@9985 21 # translate
pascal@9985 22 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \
pascal@22834 23 $fs/var/www/digger/*.*
pascal@9985 24
pascal@9985 25 # remove TODO stuff...
pascal@22834 26 sed -i 's|.*HighScorefunktion programmieren|;//&|' \
pascal@22834 27 $fs/var/www/digger/main.js
pascal@9985 28
pascal@9985 29 # remove java stuff...
pascal@22834 30 sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js
pascal@22834 31 sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html
pascal@22834 32 rm -f $fs/var/www/digger/SndServer.class
pascal@22834 33 rm -f $fs/var/www/digger/*/*.au
pascal@22834 34
pascal@22834 35 chown -R 80.80 $fs/var/www/digger
pascal@22836 36 ln -s digger.html $fs/var/www/digger/index.html
pascal@9985 37 }