wok view webgames/receipt @ rev 22836

dukto: normalize $VERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 10 15:18:14 2020 +0100 (2020-02-10)
parents 75868251b117
children 1035f0e819bc
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 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/usr/share/applications
15 while read url name comment icon; do
16 cat > $fs/usr/share/applications/$(echo $name | \
17 tr [A-Z\ ] [a-z_]).desktop <<EOT
18 [Desktop Entry]
19 Type=Application
20 Name=$name
21 Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
22 Terminal=false
23 Categories=Game;
24 Comment=${comment:-$name game}
25 Icon=${icon:-text-html}
26 EOT
27 done <<EOT
28 https://sokoban.info/ Sokoban
29 http://minesweeper.biz/ MineSweeper
30 http://playcheckers.org/ Checkers
31 http://4-in-a-row.com/ 4\ in\ a\ raw
32 http://chinese-checkers.net/ Chinese\ Checkers
33 https://www.quaxio.com/2048/ 2048
34 http://sudokus.org/ Sudoku
35 http://games.slitaz.org/loderunner/lodeRunner.html Lode\ Runner Plateform\ game
36 http://games.slitaz.org/digger/digger.html Digger Plateform\ game
37 EOT
38 }