wok 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 | 84f998f0ed86 |
children | 49bbb4b9da3c |
files | diggerjs/receipt diggerjs/stuff/usr/share/applications/boulder.desktop diggerjs/stuff/usr/share/applications/digger.desktop diggerjs/stuff/usr/share/applications/gnome.desktop webgames/receipt |
line diff
1.1 --- a/diggerjs/receipt Sat Feb 08 18:41:54 2020 +0100 1.2 +++ b/diggerjs/receipt Sun Feb 09 16:49:37 2020 +0100 1.3 @@ -14,20 +14,24 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/share/diggerjs 1.8 - cp -a $src/* $fs/usr/share/diggerjs 1.9 + mkdir -p $fs/var/www/digger 1.10 + cp -a $src/* $fs/var/www/digger 1.11 cp -a stuff/* $fs 1.12 + ln -s digger.html $fs/var/www/digger/index.html 1.13 1.14 # translate 1.15 sed -i 's/Daten werden geladen .*)/Loading graphics.../' \ 1.16 - $fs/usr/share/diggerjs/*.* 1.17 + $fs/var/www/digger/*.* 1.18 1.19 # remove TODO stuff... 1.20 - sed -i '/HighScorefunktion programmieren/d' \ 1.21 - $fs/usr/share/diggerjs/main.js 1.22 + sed -i 's|.*HighScorefunktion programmieren|;//&|' \ 1.23 + $fs/var/www/digger/main.js 1.24 1.25 # remove java stuff... 1.26 - sed -i '/<applet/,/applet>/d' $fs/usr/share/diggerjs/*.html 1.27 - rm -f $fs/usr/share/diggerjs/SndServer.class 1.28 - rm -f $fs/usr/share/diggerjs/*/*.au 1.29 + sed -i 's|sound = navigator|//&|' $fs/var/www/digger/main.js 1.30 + sed -i '/<applet/,/applet>/d' $fs/var/www/digger/*.html 1.31 + rm -f $fs/var/www/digger/SndServer.class 1.32 + rm -f $fs/var/www/digger/*/*.au 1.33 + 1.34 + chown -R 80.80 $fs/var/www/digger 1.35 }
2.1 --- a/diggerjs/stuff/usr/share/applications/boulder.desktop Sat Feb 08 18:41:54 2020 +0100 2.2 +++ b/diggerjs/stuff/usr/share/applications/boulder.desktop Sun Feb 09 16:49:37 2020 +0100 2.3 @@ -3,7 +3,7 @@ 2.4 Name=Boulder 2.5 Comment=BoulderDash game 2.6 Comment[ru]=Игра BoulderDash 2.7 -Exec=browser file:///usr/share/diggerjs/boulder.html 2.8 +Exec=browser file:///var/www/digger/boulder.html 2.9 Icon=other 2.10 Terminal=false 2.11 Categories=Game;
3.1 --- a/diggerjs/stuff/usr/share/applications/digger.desktop Sat Feb 08 18:41:54 2020 +0100 3.2 +++ b/diggerjs/stuff/usr/share/applications/digger.desktop Sun Feb 09 16:49:37 2020 +0100 3.3 @@ -3,7 +3,7 @@ 3.4 Name=Digger 3.5 Comment=Digger game 3.6 Comment[ru]=Игра Digger 3.7 -Exec=browser file:///usr/share/diggerjs/digger.html 3.8 +Exec=browser file:///var/www/digger/digger.html 3.9 Icon=other 3.10 Terminal=false 3.11 Categories=Game;
4.1 --- a/diggerjs/stuff/usr/share/applications/gnome.desktop Sat Feb 08 18:41:54 2020 +0100 4.2 +++ b/diggerjs/stuff/usr/share/applications/gnome.desktop Sun Feb 09 16:49:37 2020 +0100 4.3 @@ -3,7 +3,7 @@ 4.4 Name=Gnome digger 4.5 Comment=Gnome xdigger game 4.6 Comment[ru]=Игра Gnome digger 4.7 -Exec=browser file:///usr/share/diggerjs/gnome.html 4.8 +Exec=browser file:///var/www/digger/gnome.html 4.9 Icon=other 4.10 Terminal=false 4.11 Categories=Game;
5.1 --- a/webgames/receipt Sat Feb 08 18:41:54 2020 +0100 5.2 +++ b/webgames/receipt Sun Feb 09 16:49:37 2020 +0100 5.3 @@ -12,7 +12,7 @@ 5.4 genpkg_rules() 5.5 { 5.6 mkdir -p $fs/usr/share/applications 5.7 - while read url name; do 5.8 + while read url name comment icon; do 5.9 cat > $fs/usr/share/applications/$(echo $name | \ 5.10 tr [A-Z\ ] [a-z_]).desktop <<EOT 5.11 [Desktop Entry] 5.12 @@ -21,8 +21,8 @@ 5.13 Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url" 5.14 Terminal=false 5.15 Categories=Game; 5.16 -Comment=$name game 5.17 -Icon=applications-games 5.18 +Comment=${comment:-$name game} 5.19 +Icon=text-html 5.20 EOT 5.21 done <<EOT 5.22 https://sokoban.info/ Sokoban 5.23 @@ -31,6 +31,8 @@ 5.24 http://4-in-a-row.com/ 4\ in\ a\ raw 5.25 http://chinese-checkers.net/ Chinese\ Checkers 5.26 https://www.quaxio.com/2048/ 2048 5.27 +http://sudokus.org/ Sudoku 5.28 +http://games.slitaz.org/loderunner/lodeRunner.html Lode\ Runner Plateform\ game 5.29 +http://games.slitaz.org/digger/digger.html Digger Plateform\ game 5.30 EOT 5.31 -#http://sudokus.org/ Sudoku 5.32 }