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