wok-6.x view loderunner/receipt @ rev 25556

created recipes for nted and nted-lang
author Hans-G?nter Theisgen
date Sat Apr 22 14:54:15 2023 +0100 (18 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="loderunner"
4 VERSION="2.21g.4"
5 CATEGORY="games"
6 SHORT_DESC="Lode runner game clone in html5."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="unknown"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://loderunnerwebgame.com/LodeRunner/"
11 WGET_URL="https://github.com/SimonHung/LodeRunner_TotalRecall/archive/v$VERSION.tar.gz"
12 SUGGESTED="browser-html5"
13 HOST_ARCH="any"
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;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/loderunner
26 sed 's|\(repeatAction = \)0|\11|;s|ff (NES|n (APPLE-II|' \
27 -i $fs/var/www/loderunner/lodeRunner.storage.js
28 ln -s lodeRunner.html $fs/var/www/loderunner/index.html
29 rm -rf $fs/var/www/loderunner/tools $fs/var/www/loderunner/README.md
30 cat > $fs/usr/share/applications/loderunner.desktop <<EOT
31 [Desktop Entry]
32 Type=Application
33 Name=Lode Runner
34 Comment=Plateform game
35 Exec=sh -c "url=http://127.0.0.1/loderunner/lodeRunner.html ; tazweb --notoolbar \\\$url || browser \\\$url"
36 Icon=/var/www/loderunner/lodeRunner.ico
37 Terminal=false
38 Categories=Game
39 EOT
40 }