wok-current annotate diggerjs/receipt @ rev 25569

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