wok annotate webgames/receipt @ rev 25070

created recipe for alsa-utils-lang
author Hans-G?nter Theisgen
date Sat Jun 11 08:40:38 2022 +0100 (2022-06-11)
parents e9e5645c2329
children 86d301c916cf
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@23925 36 Icon=${icon:-applications-games}
pascal@22833 37 EOT
pascal@22833 38 done <<EOT
pascal@24117 39 http://games.slitaz.org/sokojs/main.htm Sokoban\
pascal@24117 40 Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@24118 41 http://games.slitaz.org/checker_online/index.html Chinese\ Checkers|[fr]Dames\ chinoises\
pascal@24118 42 Chinese\ Checkers|[fr]Dames\ chinoises
pascal@23925 43 http://games.slitaz.org/2048/index.html 2048
pascal@23925 44 http://games.slitaz.org/sudoku/index.html Sudoku Puzzle
pascal@22847 45 http://games.slitaz.org/loderunner/lodeRunner.html\
pascal@23925 46 Lode\ Runner Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@24119 47 http://games.slitaz.org/javascript-boulderdash/index.html\
pascal@24119 48 Boulder\ Dash Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@22847 49 http://games.slitaz.org/digger/digger.html\
pascal@23925 50 Digger Plateform\ game|[fr]Jeu\ de\ plateforme
pascal@23925 51 http://games.slitaz.org/same/index.html Same
pascal@23922 52 http://games.slitaz.org/alieninvasion/index.html\
pascal@23927 53 Alien\ Invasion Galaga\ clone
pascal@23927 54 http://games.slitaz.org/spaceinvaders/index.html Space\ Invaders
pascal@23922 55 http://games.slitaz.org/javascript-racer/v4.final.html\
pascal@23927 56 Racer Tux\ racer\ clone
pascal@23925 57 http://games.slitaz.org/GreenMahjong/index.html Mahjong
pascal@23925 58 http://games.slitaz.org/checkers/index.html Checkers|[fr]Dames\ anglaises
pascal@23927 59 http://games.slitaz.org/Connect-Four/index.html Connect\ four|[fr]4\ en\ ligne
pascal@23927 60 http://games.slitaz.org/minesweeper/index.html Mine\ sweeper|[fr]Démineur
pascal@23926 61 http://games.slitaz.org/pacman/index.html Pacman
pascal@24123 62 http://games.slitaz.org/Arkanoid/public/index.html Arkanoid
pascal@22833 63 EOT
pascal@22833 64 }