wok-6.x annotate Arkanoid/receipt @ rev 25338
updated svkbd packages ( -> 0.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jul 24 10:22:05 2022 +0100 (2022-07-24) |
parents | 97db34801d31 |
children |
rev | line source |
---|---|
pascal@24123 | 1 # SliTaz package receipt. |
pascal@24123 | 2 |
pascal@24123 | 3 PACKAGE="Arkanoid" |
pascal@24123 | 4 GITHASH="0b49ab21d5b135b2718fe0664c6c92b4deb2b46e" |
pascal@24123 | 5 VERSION="2016" |
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@24497 | 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -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 } |