wok-next annotate hatenarunner/receipt @ rev 7549
Added jpeg-dev to gdk-pixbuf-dev depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Dec 07 23:26:56 2010 +0000 (2010-12-07) |
parents | 7973fdac3a54 |
children | b50e6276ecc8 |
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@7049 | 8 WEB_SITE="http://lodedome.no-ip.com/" |
pascal@7049 | 9 TARBALL="JavaScript_Hatena.Runner_Satoshi.Ueyama.zip" |
pascal@7049 | 10 _WGET_URL="http://lodedome.no-ip.com/download.php?rfname=$TARBALL&request_id=Lode_5BBAB6F85D944A4A5CB7AC12B0BFD18D" |
pascal@7049 | 11 |
pascal@7049 | 12 # Rules to configure and make the package. |
pascal@7049 | 13 compile_rules() |
pascal@7049 | 14 { |
pascal@7049 | 15 mkdir $src |
pascal@7049 | 16 cd $src |
pascal@7049 | 17 if [ ! -s $SOURCES_REPOSITORY/$TARBALL ]; then |
pascal@7049 | 18 wget $_WGET_URL -O $TARBALL |
pascal@7049 | 19 mv $TARBALL $SOURCES_REPOSITORY |
pascal@7049 | 20 fi |
pascal@7049 | 21 unzip $SOURCES_REPOSITORY/$TARBALL |
pascal@7049 | 22 unzip HatenaRunner_MainGameScript.zip |
pascal@7049 | 23 rm -f HatenaRunner_MainGameScript.zip |
pascal@7049 | 24 dos2unix js/* *.htm *.css |
pascal@7049 | 25 # Add u, i, o, j, k, and l keys |
pascal@7049 | 26 sed -i -e 's/104:$/& case 73: case 105:/' \ |
pascal@7049 | 27 -e 's/98:$/& case 75: case 107:/' \ |
pascal@7049 | 28 -e 's/100:$/& case 74: case 106:/' \ |
pascal@7049 | 29 -e 's/102:$/& case 76: case 108:/' \ |
pascal@7049 | 30 -e 's/88:/& case 79: case 111:/' \ |
pascal@7049 | 31 -e 's/90:/& case 85: case 117:/' \ |
pascal@7049 | 32 js/key.js |
pascal@7049 | 33 sed -i -e 's/<title>.*</<title>Lode Runner</' \ |
pascal@7049 | 34 -e 's/preStart()"/preStart(); javascript:init();"/' \ |
pascal@7049 | 35 -e '/a href=/d' -e '/li>/d' -e '/ul>/d' -e '/Explorer/d' \ |
pascal@7049 | 36 runner.htm |
pascal@7049 | 37 rm -rf images/start.png images/hrlogo.png ScreenS Docs Unknown \ |
pascal@7049 | 38 users favicon.ico icon.png |
pascal@7049 | 39 mv runner.htm index.html |
pascal@7049 | 40 } |
pascal@7049 | 41 |
pascal@7049 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7049 | 43 genpkg_rules() |
pascal@7049 | 44 { |
pascal@7049 | 45 mkdir -p $fs/var/www/lode $fs/usr/share/applications |
pascal@7049 | 46 cp -a $src/* $fs/var/www/lode |
pascal@7049 | 47 chown -R 80.80 $fs/var/www/lode |
pascal@7049 | 48 cat > $fs/usr/share/applications/lode.desktop <<EOT |
pascal@7049 | 49 [Desktop Entry] |
pascal@7049 | 50 Type=Application |
pascal@7049 | 51 Name=Lode runner |
pascal@7125 | 52 Exec=GtkLauncher file:///var/www/lode/index.html |
pascal@7049 | 53 Icon=/var/www/lode/images/o0.gif |
pascal@7049 | 54 Terminal=false |
pascal@7049 | 55 Categories=Game; |
pascal@7049 | 56 Comment=Lode runner clone |
pascal@7049 | 57 EOT |
pascal@7049 | 58 } |
pascal@7049 | 59 |