wok-current view GreenMahjong/receipt @ rev 23994

linld: no initrd fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 15 08:41:50 2020 +0000 (2020-12-15)
parents
children 5ea0ce1cecc0
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 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/var/www/GreenMahjong $fs/usr/share/applications
18 cp -a $src/GreenMahjong/www/* $fs/var/www/GreenMahjong
19 chown -R 80.80 $fs/var/www/GreenMahjong
20 cat > $fs/usr/share/applications/GreenMahjong.desktop <<EOT
21 [Desktop Entry]
22 Type=Application
23 Name=Mahjong
24 Exec=sh -c "url=file:///var/www/GreenMahjong/index.html; tazweb --notoolbar \$url || browser \$url"
25 Terminal=false
26 Categories=Game;
27 Icon=applications-games
28 EOT
29 }