wok view webgames/receipt @ rev 23982
dog: fix bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 21 13:13:55 2020 +0000 (2020-11-21) |
parents | c3aef97a3cef |
children | 282f7eb39625 |
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 https://sokoban.info/ Sokoban\
40 Plateform\ game|[fr]Jeu\ de\ plateforme applications-internet
41 http://chinese-checkers.net/ Chinese\ Checkers|[fr]Dames\ chinoises\
42 Chinese\ Checkers|[fr]Dames\ chinoises applications-internet
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/digger/digger.html\
48 Digger Plateform\ game|[fr]Jeu\ de\ plateforme
49 http://games.slitaz.org/same/index.html Same
50 http://games.slitaz.org/alieninvasion/index.html\
51 Alien\ Invasion Galaga\ clone
52 http://games.slitaz.org/spaceinvaders/index.html Space\ Invaders
53 http://games.slitaz.org/javascript-racer/v4.final.html\
54 Racer Tux\ racer\ clone
55 http://games.slitaz.org/GreenMahjong/index.html Mahjong
56 http://games.slitaz.org/checkers/index.html Checkers|[fr]Dames\ anglaises
57 http://games.slitaz.org/Connect-Four/index.html Connect\ four|[fr]4\ en\ ligne
58 http://games.slitaz.org/minesweeper/index.html Mine\ sweeper|[fr]Démineur
59 http://games.slitaz.org/pacman/index.html Pacman
60 EOT
61 }