wok-current annotate diggerjs/receipt @ rev 24906
updated minidlna (1.2.1 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:37:52 2022 +0100 (2022-04-09) |
parents | 079887dee9fb |
children | bd7510903310 |
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@24564 | 14 # What is the latest version available today? |
pascal@24564 | 15 current_version() |
pascal@24564 | 16 { |
pascal@24564 | 17 wget -O - https://github.com/lutzroeder/digger/commits/main 2>/dev/null | \ |
pascal@24564 | 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24564 | 19 } |
pascal@24564 | 20 |
pascal@9985 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9985 | 22 genpkg_rules() |
pascal@9985 | 23 { |
pascal@22834 | 24 mkdir -p $fs/var/www/digger |
pascal@22834 | 25 cp -a $src/* $fs/var/www/digger |
pascal@9985 | 26 cp -a stuff/* $fs |
pascal@9985 | 27 |
pascal@9985 | 28 # translate |
pascal@9985 | 29 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \ |
pascal@22834 | 30 $fs/var/www/digger/*.* |
pascal@9985 | 31 |
pascal@9985 | 32 # remove TODO stuff... |
pascal@22834 | 33 sed -i 's|.*HighScorefunktion programmieren|;//&|' \ |
pascal@22834 | 34 $fs/var/www/digger/main.js |
pascal@9985 | 35 |
pascal@9985 | 36 # remove java stuff... |
pascal@22834 | 37 sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js |
pascal@22834 | 38 sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html |
pascal@22834 | 39 rm -f $fs/var/www/digger/SndServer.class |
pascal@22834 | 40 rm -f $fs/var/www/digger/*/*.au |
pascal@22834 | 41 |
pascal@22834 | 42 chown -R 80.80 $fs/var/www/digger |
pascal@22836 | 43 ln -s digger.html $fs/var/www/digger/index.html |
pascal@9985 | 44 } |