wok view minesweeper/receipt @ rev 25604
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 17:30:47 2023 +0000 (16 months ago) |
parents | e1e1678c5265 |
children | a66f312c374b |
line source
1 # SliTaz package receipt.
3 PACKAGE="minesweeper"
4 VERSION="20120720"
5 GITTAG="9a2add13bacfa9849a1c2abf0898e4b461203001"
6 CATEGORY="games"
7 SHORT_DESC="Windows 95 classic game clone"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="unknown"
10 WEB_SITE="https://github.com/minesweeper/minesweeper-coffeescript"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITTAG.zip"
13 HOST_ARCH="any"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www/minesweeper $fs/usr/share/applications
26 cp -a $src/[a-z]* $fs/var/www/minesweeper
27 rm -f $fs/var/www/minesweeper/readme.md
28 chown -R 80.80 $fs/var/www/minesweeper
29 cat > $fs/usr/share/applications/minesweeper.desktop <<EOT
30 [Desktop Entry]
31 Type=Application
32 Name=Minesweeper
33 Name[fr]=Démineur
34 Exec=sh -c "url=file:///var/www/minesweeper/index.html; tazweb --notoolbar \$url || browser \$url"
35 Terminal=false
36 Categories=Game;
37 Icon=applications-games
38 EOT
39 }