wok annotate minesweeper/receipt @ rev 24391
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 18:01:05 2022 +0000 (2022-02-07) |
parents | |
children | 34e801e0eb52 |
rev | line source |
---|---|
pascal@23926 | 1 # SliTaz package receipt. |
pascal@23926 | 2 |
pascal@23926 | 3 PACKAGE="minesweeper" |
pascal@23926 | 4 VERSION="1.0" |
pascal@23926 | 5 GITTAG="9a2add13bacfa9849a1c2abf0898e4b461203001" |
pascal@23926 | 6 CATEGORY="games" |
pascal@23926 | 7 SHORT_DESC="Windows 95 classic game clone" |
pascal@23926 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23926 | 9 LICENSE="unknown" |
pascal@23926 | 10 WEB_SITE="https://github.com/minesweeper/minesweeper-coffeescript" |
pascal@23926 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@23926 | 12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip" |
pascal@23926 | 13 HOST_ARCH="any" |
pascal@23926 | 14 |
pascal@23926 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23926 | 16 genpkg_rules() |
pascal@23926 | 17 { |
pascal@23926 | 18 mkdir -p $fs/var/www/minesweeper $fs/usr/share/applications |
pascal@23926 | 19 cp -a $src/[a-z]* $fs/var/www/minesweeper |
pascal@23926 | 20 rm -f $fs/var/www/minesweeper/readme.md |
pascal@23926 | 21 chown -R 80.80 $fs/var/www/minesweeper |
pascal@23926 | 22 cat > $fs/usr/share/applications/minesweeper.desktop <<EOT |
pascal@23926 | 23 [Desktop Entry] |
pascal@23926 | 24 Type=Application |
pascal@23926 | 25 Name=Minesweeper |
pascal@23926 | 26 Name[fr]=Démineur |
pascal@23926 | 27 Exec=sh -c "url=file:///var/www/minesweeper/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23926 | 28 Terminal=false |
pascal@23926 | 29 Categories=Game; |
pascal@23926 | 30 Icon=applications-games |
pascal@23926 | 31 EOT |
pascal@23926 | 32 } |