wok annotate loderunner/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@18625 | 1 # SliTaz package receipt. |
pascal@18625 | 2 |
pascal@18625 | 3 PACKAGE="loderunner" |
pascal@20418 | 4 VERSION="2.21g.4" |
pascal@18625 | 5 CATEGORY="games" |
pascal@18625 | 6 SHORT_DESC="Lode runner game clone in html5." |
pascal@18625 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18625 | 8 LICENSE="unknown" |
pascal@18625 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18625 | 10 WEB_SITE="http://loderunnerwebgame.com/LodeRunner/" |
pascal@18625 | 11 WGET_URL="https://github.com/SimonHung/LodeRunner_TotalRecall/archive/v$VERSION.tar.gz" |
pascal@22840 | 12 SUGGESTED="browser-html5" |
pascal@19096 | 13 HOST_ARCH="any" |
pascal@18625 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24299 | 17 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@18625 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18625 | 22 genpkg_rules() |
pascal@18625 | 23 { |
pascal@18625 | 24 mkdir -p $fs/var/www $fs/usr/share/applications |
pascal@18625 | 25 cp -a $src $fs/var/www/loderunner |
pascal@22840 | 26 sed 's|\(repeatAction = \)0|\11|;s|ff (NES|n (APPLE-II|' \ |
pascal@22840 | 27 -i $fs/var/www/loderunner/lodeRunner.storage.js |
pascal@18625 | 28 ln -s lodeRunner.html $fs/var/www/loderunner/index.html |
pascal@18625 | 29 rm -rf $fs/var/www/loderunner/tools $fs/var/www/loderunner/README.md |
pascal@18625 | 30 cat > $fs/usr/share/applications/loderunner.desktop <<EOT |
pascal@18625 | 31 [Desktop Entry] |
pascal@18625 | 32 Type=Application |
pascal@18625 | 33 Name=Lode Runner |
pascal@18625 | 34 Comment=Plateform game |
pascal@20513 | 35 Exec=sh -c "url=http://127.0.0.1/loderunner/lodeRunner.html ; tazweb --notoolbar \\\$url || browser \\\$url" |
pascal@18625 | 36 Icon=/var/www/loderunner/lodeRunner.ico |
pascal@18625 | 37 Terminal=false |
pascal@18625 | 38 Categories=Game |
pascal@18625 | 39 EOT |
pascal@18625 | 40 } |