wok-6.x rev 23925

Add Connect-Four
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 23 10:18:23 2020 +0000 (2020-08-23)
parents 6df1e562bb3c
children c3aef97a3cef
files Connect-Four/receipt webgames/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Connect-Four/receipt	Sun Aug 23 10:18:23 2020 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="Connect-Four"
     1.7 +VERSION="1.0"
     1.8 +GITTAG="fa4bbe1fbd6158fa4504d3cb832d8d4af4d3f805"
     1.9 +CATEGORY="games"
    1.10 +SHORT_DESC="A Connect Four game in JavaScript"
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="unknown"
    1.13 +WEB_SITE="https://github.com/OmarAlEisa/Connect-Four"
    1.14 +TARBALL="$PACKAGE-$VERSION.zip"
    1.15 +WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
    1.16 +HOST_ARCH="any"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p $fs/var/www/Connect-Four $fs/usr/share/applications
    1.22 +	cp -a $src/[a-z]* $fs/var/www/Connect-Four
    1.23 +	sed -i '/<script>/,/<\/script>/d' $fs/var/www/Connect-Four/index.html
    1.24 +	chown -R 80.80 $fs/var/www/Connect-Four
    1.25 +	cat > $fs/usr/share/applications/Connect-Four.desktop <<EOT
    1.26 +[Desktop Entry]
    1.27 +Type=Application
    1.28 +Name=4 in a raw
    1.29 +Name[fr]=4 en ligne
    1.30 +Exec=sh -c "url=file:///var/www/Connect-Four/index.html; tazweb --notoolbar \$url || browser \$url"
    1.31 +Terminal=false
    1.32 +Categories=Game;
    1.33 +Icon=applications-games
    1.34 +EOT
    1.35 +}
     2.1 --- a/webgames/receipt	Sat Aug 22 19:44:06 2020 +0000
     2.2 +++ b/webgames/receipt	Sun Aug 23 10:18:23 2020 +0000
     2.3 @@ -33,37 +33,29 @@
     2.4  Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
     2.5  Terminal=false
     2.6  Categories=Game;
     2.7 -Icon=${icon:-text-html}
     2.8 +Icon=${icon:-applications-games}
     2.9  EOT
    2.10  	done <<EOT
    2.11  https://sokoban.info/		Sokoban\
    2.12 -			Plateform\ game|[fr]Jeu\ de\ plateforme
    2.13 -http://minesweeper.biz/		MineSweeper|[fr]Démineur
    2.14 -http://4-in-a-row.com/		4\ in\ a\ raw|[fr]4\ en\ ligne
    2.15 -http://chinese-checkers.net/	Chinese\ Checkers|[fr]Dames\ chinoises
    2.16 -http://games.slitaz.org/2048/index.html\
    2.17 -	2048	2048	applications-games
    2.18 -http://games.slitaz.org/sudoku/index.html\
    2.19 -	Sudoku	Puzzle	applications-games
    2.20 +	Plateform\ game|[fr]Jeu\ de\ plateforme	text-html
    2.21 +http://minesweeper.biz/ 	MineSweeper|[fr]Démineur\
    2.22 +	MineSweeper|[fr]Démineur	text-html
    2.23 +http://chinese-checkers.net/	Chinese\ Checkers|[fr]Dames\ chinoises\
    2.24 +	Chinese\ Checkers|[fr]Dames\ chinoises	text-html
    2.25 +http://games.slitaz.org/2048/index.html	2048
    2.26 +http://games.slitaz.org/sudoku/index.html Sudoku	Puzzle
    2.27  http://games.slitaz.org/loderunner/lodeRunner.html\
    2.28 -	Lode\ Runner	Plateform\ game|[fr]Jeu\ de\ plateforme\
    2.29 -	applications-games
    2.30 +	Lode\ Runner	Plateform\ game|[fr]Jeu\ de\ plateforme
    2.31  http://games.slitaz.org/digger/digger.html\
    2.32 -	Digger		Plateform\ game|[fr]Jeu\ de\ plateforme\
    2.33 -	applications-games
    2.34 -http://games.slitaz.org/same/index.html\
    2.35 -	Same		same	applications-games
    2.36 +	Digger		Plateform\ game|[fr]Jeu\ de\ plateforme
    2.37 +http://games.slitaz.org/same/index.html	Same
    2.38  http://games.slitaz.org/alieninvasion/index.html\
    2.39 -	AlienInvasion		Galaga\ clone	applications-games
    2.40 -http://games.slitaz.org/spaceinvader/index.html\
    2.41 -	SpaceInvaders		Space\ invaders\ clone	applications-games
    2.42 +	AlienInvasion		Galaga\ clone
    2.43 +http://games.slitaz.org/spaceinvaders/index.html SpaceInvaders
    2.44  http://games.slitaz.org/javascript-racer/v4.final.html\
    2.45 -	JSracer		Tux\ racer\ clone	applications-games
    2.46 -http://games.slitaz.org/GreenMahjong/index.html\
    2.47 -	Mahjong		Mahjong	applications-games
    2.48 -http://games.slitaz.org/checkers/index.html\
    2.49 -	Checkers|[fr]Dames\ anglaises\
    2.50 -	Checkers|[fr]Dames\ anglaises\
    2.51 -	applications-games
    2.52 +	JSracer		Tux\ racer\ clone
    2.53 +http://games.slitaz.org/GreenMahjong/index.html	Mahjong
    2.54 +http://games.slitaz.org/checkers/index.html	Checkers|[fr]Dames\ anglaises
    2.55 +http://games.slitaz.org/Connect-Four/index.html	4\ in\ a\ raw|[fr]4\ en\ ligne
    2.56  EOT
    2.57  }