wok view GreenMahjong/receipt @ rev 25672

Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:07:44 2024 +0000 (10 months ago)
parents 5ea0ce1cecc0
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 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications
25 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong
26 chown -R 80.80 $fs/var/www/GreenMahjong
27 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT
28 [Desktop Entry]
29 Type=Application
30 Name=Mahjong
31 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url"
32 Terminal=false
33 Categories=Game;
34 Icon=applications-games
35 EOT
36 }