wok view webgames/receipt @ rev 22833

Add webgames
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 08 18:41:54 2020 +0100 (2020-02-08)
parents
children 75868251b117
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; 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=$name game
25 Icon=applications-games
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 EOT
35 #http://sudokus.org/ Sudoku
36 }