wok view alieninvasion/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="alieninvasion"
4 VERSION="20140713"
5 GITTAG="d208e3c803c826999aa0592993c3c934dfcc5613"
6 CATEGORY="games"
7 SHORT_DESC="Invader game in html5"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT GPL"
10 WEB_SITE="https://github.com/cykod/AlienInvasion"
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/alieninvasion $fs/usr/share/applications
26 cp -a $src/[a-z]* $fs/var/www/alieninvasion
27 chown -R 80.80 $fs/var/www/alieninvasion
28 cat > $fs/usr/share/applications/alieninvasion.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Name=Alien invasion
32 Exec=sh -c "url=file:///var/www/alieninvasion/index.html; tazweb --notoolbar \$url || browser \$url"
33 Terminal=false
34 Categories=Game;
35 Icon=applications-games
36 EOT
37 }