wok-6.x view GreenMahjong/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | 02aa784b8c4b |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="GreenMahjong"
4 VERSION="2.2.0"
5 CATEGORY="games"
6 SHORT_DESC="A simple sliding blocks puzzle game using JavaScript and HTML5"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/danbeck/green-mahjong"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.zip"
12 HOST_ARCH="any"
14 current_version()
15 {
16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications
24 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong
25 chown -R 80.80 $fs/var/www/GreenMahjong
26 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT
27 [Desktop Entry]
28 Type=Application
29 Name=Mahjong
30 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url"
31 Terminal=false
32 Categories=Game;
33 Icon=applications-games
34 EOT
35 }