wok-current view webgames/receipt @ rev 22847

webgames: add fr translations
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 15 16:06:57 2020 +0100 (2020-02-15)
parents 079887dee9fb
children ffed896b80ca
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"; shift
16 while [ "$1" ]; do
17 echo "$type${1%]*}]=${1#*]}"
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:-text-html}
37 EOT
38 done <<EOT
39 https://sokoban.info/ Sokoban
40 http://minesweeper.biz/ MineSweeper|[fr]Démineur
41 http://playcheckers.org/ Checkers|[fr]Dames
42 http://4-in-a-row.com/ 4\ in\ a\ raw|[fr]4\ en\ ligne
43 http://chinese-checkers.net/ Chinese\ Checkers|[fr]Dames\ chinoises
44 https://www.quaxio.com/2048/ 2048
45 http://sudokus.org/ Sudoku
46 http://games.slitaz.org/loderunner/lodeRunner.html\
47 Lode\ Runner Plateform\ game|[fr]Jeu\ de\ plateforme
48 http://games.slitaz.org/digger/digger.html\
49 Digger Plateform\ game|[fr]Jeu\ de\ plateforme
50 EOT
51 }