wok-next view hatenarunner/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents de49f29b101e
children 8e1b2a143eb3
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="http://lodedome.no-ip.com/"
11 TARBALL="JavaScript_Hatena.Runner_Satoshi.Ueyama.zip"
12 #_WGET_URL="http://lodedome.no-ip.com/download.php?rfname=$TARBALL&request_id=Lode_5BBAB6F85D944A4A5CB7AC12B0BFD18D"
13 WGET_URL="http://mirror.slitaz.org/sources/packages/${TARBALL:0:1}/$TARBALL"
15 compile_rules() {
16 unzip -o HatenaRunner_MainGameScript.zip
17 rm -f HatenaRunner_MainGameScript.zip
18 dos2unix js/* *.htm *.css
19 # Add u, i, o, j, k, and l keys
20 sed -i -e 's/104:$/& case 73: case 105:/' \
21 -e 's/98:$/& case 75: case 107:/' \
22 -e 's/100:$/& case 74: case 106:/' \
23 -e 's/102:$/& case 76: case 108:/' \
24 -e 's/88:/& case 79: case 111:/' \
25 -e 's/90:/& case 85: case 117:/' \
26 js/key.js
27 sed -i -e 's/<title>.*</<title>Lode Runner</' \
28 -e 's/preStart()"/preStart(); javascript:init();"/' \
29 -e '/a href=/d' -e '/li>/d' -e '/ul>/d' -e '/Explorer/d' \
30 runner.htm
31 rm -rf images/start.png images/hrlogo.png ScreenS Docs Unknown \
32 users favicon.ico icon.png
33 mv runner.htm index.html
35 mkdir -p $install/var/www/lode $install/usr/share/applications
36 cp -a $src/* $install/var/www/lode
37 chown -R 80.80 $install/var/www/lode
38 cat > $install/usr/share/applications/lode.desktop <<EOT
39 [Desktop Entry]
40 Type=Application
41 Name=Lode runner
42 Exec=browser file:///var/www/lode/index.html
43 Icon=/var/www/lode/images/o0.gif
44 Terminal=false
45 Categories=Game;
46 Comment=Lode runner clone
47 EOT
48 }
50 genpkg_rules() {
51 copy @std
52 }