wok-current annotate webgames/receipt @ rev 23004

updated libassuan and libassuan-dev (2.5.1 -> 2.5.3)
author Hans-G?nter Theisgen
date Mon Mar 02 17:29:40 2020 +0100 (2020-03-02)
parents c34ef09acb7c
children 98fc8296e0a1
rev   line source
pascal@22833 1 # SliTaz package receipt.
pascal@22833 2
pascal@22833 3 PACKAGE="webgames"
pascal@22833 4 VERSION="1.0"
pascal@22833 5 CATEGORY="games"
pascal@22833 6 SHORT_DESC="Set of online games"
pascal@22833 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@22833 8 LICENSE="MIT"
pascal@22833 9 WEB_SITE="http://www.slitaz.org/"
pascal@22833 10
pascal@22847 11 mline()
pascal@22847 12 {
pascal@22847 13 type=$1
pascal@22847 14 IFS='|'; set -- $2
pascal@22849 15 echo "$type=$1"
pascal@22849 16 while [ "$2" ]; do
pascal@22849 17 echo "$type${2%]*}]=${2#*]}"
pascal@22847 18 shift
pascal@22847 19 done
pascal@22847 20 }
pascal@22847 21
pascal@22833 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@22833 23 genpkg_rules()
pascal@22833 24 {
pascal@22833 25 mkdir -p $fs/usr/share/applications
pascal@22834 26 while read url name comment icon; do
pascal@22847 27 cat > $fs/usr/share/applications/$(echo ${name%|*} | \
pascal@22833 28 tr [A-Z\ ] [a-z_]).desktop <<EOT
pascal@22833 29 [Desktop Entry]
pascal@22833 30 Type=Application
pascal@22847 31 $(mline Name "$name")${comment:+
pascal@22847 32 $(mline Comment "$comment")}
pascal@22833 33 Exec=sh -c "url=$url; tazweb --notoolbar \$url || browser \$url"
pascal@22833 34 Terminal=false
pascal@22833 35 Categories=Game;
pascal@22836 36 Icon=${icon:-text-html}
pascal@22833 37 EOT
pascal@22833 38 done <<EOT
pascal@22848 39 https://sokoban.info/ Sokoban\
pascal@22848 40 Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@22847 41 http://minesweeper.biz/ MineSweeper|[fr]Démineur
pascal@22848 42 http://playcheckers.org/ Checkers|[fr]Dames\ anglaises
pascal@22847 43 http://4-in-a-row.com/ 4\ in\ a\ raw|[fr]4\ en\ ligne
pascal@22847 44 http://chinese-checkers.net/ Chinese\ Checkers|[fr]Dames\ chinoises
pascal@22833 45 https://www.quaxio.com/2048/ 2048
pascal@22971 46 http://games.slitaz.org/sudoku/index.html\
pascal@22971 47 Sudoku Puzzle
pascal@22847 48 http://games.slitaz.org/loderunner/lodeRunner.html\
pascal@22847 49 Lode\ Runner Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@22847 50 http://games.slitaz.org/digger/digger.html\
pascal@22847 51 Digger Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@22971 52 http://games.slitaz.org/same/index.html\
pascal@22971 53 Same
pascal@22833 54 EOT
pascal@22833 55 }