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