wok annotate GreenMahjong/receipt @ rev 24987

grub: add gpt support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 12 07:08:39 2022 +0000 (2022-05-12)
parents 02aa784b8c4b
children 343c093ad221
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@24055 14 current_version()
pascal@24055 15 {
pascal@24055 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 17 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 18 }
pascal@24055 19
pascal@23923 20 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23923 21 genpkg_rules()
pascal@23923 22 {
pascal@23923 23 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications
pascal@23923 24 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong
pascal@23923 25 chown -R 80.80 $fs/var/www/GreenMahjong
pascal@23923 26 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT
pascal@23923 27 [Desktop Entry]
pascal@23923 28 Type=Application
pascal@23923 29 Name=Mahjong
pascal@23923 30 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url"
pascal@23923 31 Terminal=false
pascal@23923 32 Categories=Game;
pascal@23923 33 Icon=applications-games
pascal@23923 34 EOT
pascal@23923 35 }