wok annotate GreenMahjong/receipt @ rev 25597

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 11:24:03 2023 +0000 (18 months ago)
parents 5ea0ce1cecc0
children
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@25597 14 # What is the latest version available today?
pascal@24055 15 current_version()
pascal@24055 16 {
pascal@24055 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25597 18 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 19 }
pascal@24055 20
pascal@23923 21 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23923 22 genpkg_rules()
pascal@23923 23 {
pascal@23923 24 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications
pascal@23923 25 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong
pascal@23923 26 chown -R 80.80 $fs/var/www/GreenMahjong
pascal@23923 27 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT
pascal@23923 28 [Desktop Entry]
pascal@23923 29 Type=Application
pascal@23923 30 Name=Mahjong
pascal@23923 31 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url"
pascal@23923 32 Terminal=false
pascal@23923 33 Categories=Game;
pascal@23923 34 Icon=applications-games
pascal@23923 35 EOT
pascal@23923 36 }