wok view Arkanoid/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | c470ca10c896 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="Arkanoid"
4 GITHASH="0b49ab21d5b135b2718fe0664c6c92b4deb2b46e"
5 VERSION="20160919"
6 CATEGORY="games"
7 SHORT_DESC="The classic atari arcade game arkanoid"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://github.com/shiningdragon/Arkanoid"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
18 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/www $fs/usr/share/applications
25 cp -a $src $fs/var/www/$PACKAGE
26 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
27 [Desktop Entry]
28 Type=Application
29 Name=$PACKAGE
30 Exec=sh -c "url=http://127.0.0.1/$PACKAGE/public/index.html ; tazweb --notoolbar \\\$url || browser \\\$url"
31 Icon=applications-games
32 Terminal=false
33 Categories=Game
34 EOT
35 }