wok-next view hatenarunner/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 8e1b2a143eb3 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hatenarunner"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Loderunner game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://web.archive.org/web/20080225140323/http://lodedome.no-ip.com/"
10 HOST_ARCH="any"
12 TARBALL="JavaScript_Hatena.Runner_Satoshi.Ueyama.zip"
13 #_WGET_URL="http://lodedome.no-ip.com/download.php?rfname=$TARBALL&request_id=Lode_5BBAB6F85D944A4A5CB7AC12B0BFD18D"
14 WGET_URL="http://mirror.slitaz.org/sources/packages/${TARBALL:0:1}/$TARBALL"
16 compile_rules() {
17 unzip -o HatenaRunner_MainGameScript.zip
18 rm -f HatenaRunner_MainGameScript.zip
19 dos2unix js/* *.htm *.css
20 # Add u, i, o, j, k, and l keys
21 sed -i -e 's/104:$/& case 73: case 105:/' \
22 -e 's/98:$/& case 75: case 107:/' \
23 -e 's/100:$/& case 74: case 106:/' \
24 -e 's/102:$/& case 76: case 108:/' \
25 -e 's/88:/& case 79: case 111:/' \
26 -e 's/90:/& case 85: case 117:/' \
27 js/key.js
28 sed -i -e 's/<title>.*</<title>Lode Runner</' \
29 -e 's/preStart()"/preStart(); javascript:init();"/' \
30 -e '/a href=/d' -e '/li>/d' -e '/ul>/d' -e '/Explorer/d' \
31 runner.htm
32 rm -rf images/start.png images/hrlogo.png ScreenS Docs Unknown \
33 users favicon.ico icon.png
34 mv runner.htm index.html
36 mkdir -p $install/var/www/lode $install/usr/share/applications
37 cp -a $src/* $install/var/www/lode
38 chown -R 80.80 $install/var/www/lode
39 cat > $install/usr/share/applications/lode.desktop <<EOT
40 [Desktop Entry]
41 Type=Application
42 Name=Lode runner
43 Exec=browser file:///var/www/lode/index.html
44 Icon=/var/www/lode/images/o0.gif
45 Terminal=false
46 Categories=Game;
47 Comment=Lode runner clone
48 EOT
49 }
51 genpkg_rules() {
52 copy @std
53 }