wok-6.x annotate minesweeper/receipt @ rev 24740
updated libexif-gtk and libexif-gtk-dev (0.4.0 -> 0.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:07:05 2022 +0100 (2022-03-16) |
parents | c3aef97a3cef |
children | e1e1678c5265 |
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@24497 | 15 # What is the latest version available today? |
pascal@24497 | 16 current_version() |
pascal@24497 | 17 { |
pascal@24497 | 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24497 | 19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24497 | 20 } |
pascal@24497 | 21 |
pascal@23926 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23926 | 23 genpkg_rules() |
pascal@23926 | 24 { |
pascal@23926 | 25 mkdir -p $fs/var/www/minesweeper $fs/usr/share/applications |
pascal@23926 | 26 cp -a $src/[a-z]* $fs/var/www/minesweeper |
pascal@23926 | 27 rm -f $fs/var/www/minesweeper/readme.md |
pascal@23926 | 28 chown -R 80.80 $fs/var/www/minesweeper |
pascal@23926 | 29 cat > $fs/usr/share/applications/minesweeper.desktop <<EOT |
pascal@23926 | 30 [Desktop Entry] |
pascal@23926 | 31 Type=Application |
pascal@23926 | 32 Name=Minesweeper |
pascal@23926 | 33 Name[fr]=Démineur |
pascal@23926 | 34 Exec=sh -c "url=file:///var/www/minesweeper/index.html; tazweb --notoolbar \$url || browser \$url" |
pascal@23926 | 35 Terminal=false |
pascal@23926 | 36 Categories=Game; |
pascal@23926 | 37 Icon=applications-games |
pascal@23926 | 38 EOT |
pascal@23926 | 39 } |