wok-current rev 22833

Add webgames
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 08 18:41:54 2020 +0100 (2020-02-08)
parents efa71a1392d4
children 75868251b117
files webgames/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/webgames/receipt	Sat Feb 08 18:41:54 2020 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="webgames"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Set of online games"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="http://www.slitaz.org/"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/share/applications
    1.18 +	while read url name; do
    1.19 +		cat > $fs/usr/share/applications/$(echo $name | \
    1.20 +			tr [A-Z\ ] [a-z_]).desktop <<EOT
    1.21 +[Desktop Entry]
    1.22 +Type=Application
    1.23 +Name=$name
    1.24 +Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
    1.25 +Terminal=false
    1.26 +Categories=Game;
    1.27 +Comment=$name game
    1.28 +Icon=applications-games
    1.29 +EOT
    1.30 +	done <<EOT
    1.31 +https://sokoban.info/	Sokoban
    1.32 +http://minesweeper.biz/	MineSweeper
    1.33 +http://playcheckers.org/	Checkers
    1.34 +http://4-in-a-row.com/	4\ in\ a\ raw
    1.35 +http://chinese-checkers.net/	Chinese\ Checkers
    1.36 +https://www.quaxio.com/2048/	2048
    1.37 +EOT
    1.38 +#http://sudokus.org/	Sudoku
    1.39 +}