wok annotate Arkanoid/receipt @ rev 25611
Add zx0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 01 18:37:27 2023 +0000 (13 months ago) |
parents | d66160614dc4 |
children | a66f312c374b |
rev | line source |
---|---|
pascal@24123 | 1 # SliTaz package receipt. |
pascal@24123 | 2 |
pascal@24123 | 3 PACKAGE="Arkanoid" |
pascal@24123 | 4 GITHASH="0b49ab21d5b135b2718fe0664c6c92b4deb2b46e" |
pascal@25604 | 5 VERSION="20160919" |
pascal@24123 | 6 CATEGORY="games" |
pascal@24123 | 7 SHORT_DESC="The classic atari arcade game arkanoid" |
pascal@24123 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24123 | 9 LICENSE="MIT" |
pascal@24123 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pascal@24123 | 11 WEB_SITE="https://github.com/shiningdragon/Arkanoid" |
pascal@24123 | 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip" |
pascal@24123 | 13 |
pascal@24497 | 14 # What is the latest version available today? |
pascal@24497 | 15 current_version() |
pascal@24497 | 16 { |
pascal@24497 | 17 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@25581 | 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24497 | 19 } |
pascal@24497 | 20 |
pascal@24123 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24123 | 22 genpkg_rules() |
pascal@24123 | 23 { |
pascal@24123 | 24 mkdir -p $fs/var/www $fs/usr/share/applications |
pascal@24123 | 25 cp -a $src $fs/var/www/$PACKAGE |
pascal@24123 | 26 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT |
pascal@24123 | 27 [Desktop Entry] |
pascal@24123 | 28 Type=Application |
pascal@24123 | 29 Name=$PACKAGE |
pascal@24123 | 30 Exec=sh -c "url=http://127.0.0.1/$PACKAGE/public/index.html ; tazweb --notoolbar \\\$url || browser \\\$url" |
pascal@24123 | 31 Icon=applications-games |
pascal@24123 | 32 Terminal=false |
pascal@24123 | 33 Categories=Game |
pascal@24123 | 34 EOT |
pascal@24123 | 35 } |