wok-6.x view webgames/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents e9e5645c2329
children 86d301c916cf
line source
1 # SliTaz package receipt.
3 PACKAGE="webgames"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Set of online games"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.slitaz.org/"
11 mline()
12 {
13 type=$1
14 IFS='|'; set -- $2
15 echo "$type=$1"
16 while [ "$2" ]; do
17 echo "$type${2%]*}]=${2#*]}"
18 shift
19 done
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/applications
26 while read url name comment icon; do
27 cat > $fs/usr/share/applications/$(echo ${name%|*} | \
28 tr [A-Z\ ] [a-z_]).desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 $(mline Name "$name")${comment:+
32 $(mline Comment "$comment")}
33 Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
34 Terminal=false
35 Categories=Game;
36 Icon=${icon:-applications-games}
37 EOT
38 done <<EOT
39 http://games.slitaz.org/sokojs/main.htm Sokoban\
40 Plateform\ game|[fr]Jeu\ de\ plateforme
41 http://games.slitaz.org/checker_online/index.html Chinese\ Checkers|[fr]Dames\ chinoises\
42 Chinese\ Checkers|[fr]Dames\ chinoises
43 http://games.slitaz.org/2048/index.html 2048
44 http://games.slitaz.org/sudoku/index.html Sudoku Puzzle
45 http://games.slitaz.org/loderunner/lodeRunner.html\
46 Lode\ Runner Plateform\ game|[fr]Jeu\ de\ plateforme
47 http://games.slitaz.org/javascript-boulderdash/index.html\
48 Boulder\ Dash Plateform\ game|[fr]Jeu\ de\ plateforme
49 http://games.slitaz.org/digger/digger.html\
50 Digger Plateform\ game|[fr]Jeu\ de\ plateforme
51 http://games.slitaz.org/same/index.html Same
52 http://games.slitaz.org/alieninvasion/index.html\
53 Alien\ Invasion Galaga\ clone
54 http://games.slitaz.org/spaceinvaders/index.html Space\ Invaders
55 http://games.slitaz.org/javascript-racer/v4.final.html\
56 Racer Tux\ racer\ clone
57 http://games.slitaz.org/GreenMahjong/index.html Mahjong
58 http://games.slitaz.org/checkers/index.html Checkers|[fr]Dames\ anglaises
59 http://games.slitaz.org/Connect-Four/index.html Connect\ four|[fr]4\ en\ ligne
60 http://games.slitaz.org/minesweeper/index.html Mine\ sweeper|[fr]Démineur
61 http://games.slitaz.org/pacman/index.html Pacman
62 http://games.slitaz.org/Arkanoid/public/index.html Arkanoid
63 EOT
64 }