wok-6.x annotate GreenMahjong/receipt @ rev 23923
Add GreenMahjong
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 22 17:48:54 2020 +0000 (2020-08-22) |
parents | |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@23923 | 1 # SliTaz package receipt. |
pascal@23923 | 2 |
pascal@23923 | 3 PACKAGE="GreenMahjong" |
pascal@23923 | 4 VERSION="2.2.0" |
pascal@23923 | 5 CATEGORY="games" |
pascal@23923 | 6 SHORT_DESC="A simple sliding blocks puzzle game using JavaScript and HTML5" |
pascal@23923 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23923 | 8 LICENSE="GPL3" |
pascal@23923 | 9 WEB_SITE="https://github.com/danbeck/green-mahjong" |
pascal@23923 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@23923 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.zip" |
pascal@23923 | 12 HOST_ARCH="any" |
pascal@23923 | 13 |
pascal@23923 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23923 | 15 genpkg_rules() |
pascal@23923 | 16 { |
pascal@23923 | 17 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications |
pascal@23923 | 18 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong |
pascal@23923 | 19 chown -R 80.80 $fs/var/www/GreenMahjong |
pascal@23923 | 20 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT |
pascal@23923 | 21 [Desktop Entry] |
pascal@23923 | 22 Type=Application |
pascal@23923 | 23 Name=Mahjong |
pascal@23923 | 24 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23923 | 25 Terminal=false |
pascal@23923 | 26 Categories=Game; |
pascal@23923 | 27 Icon=applications-games |
pascal@23923 | 28 EOT |
pascal@23923 | 29 } |