wok-current annotate GreenMahjong/receipt @ rev 25174
updated python-flask (1.1.2 -> 1.1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 01 17:16:59 2022 +0100 (2022-07-01) |
parents | 02aa784b8c4b |
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@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 } |