wok-tiny rev 19

Add nanochess
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 23:23:14 2011 +0100 (2011-02-02)
parents 3ded08f4c708
children fd349cc6f295
files nanochess/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nanochess/receipt	Wed Feb 02 23:23:14 2011 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nanochess"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Chess game in javascript (need an unicode aware browser)"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://nanochess.110mb.com/chess4.html"
    1.12 +
    1.13 +# Rules to configure and make the package.
    1.14 +compile_rules()
    1.15 +{
    1.16 +	mkdir $src
    1.17 +	cd $src
    1.18 +	wget -O index.html \
    1.19 +		$(dirname $WEB_SITE)/archive/toledo_javascript_chess_3.html
    1.20 +	sed -i -e 's/<select/\&#9823; \&rarr; &/' \
    1.21 +	  -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \
    1.22 +	  -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \
    1.23 +	  -e 's/f0f":"c0c")+"0f0/f0f":"606")+"0c0/' -e 's/e0e0f0/b0b080/' \
    1.24 +	  -e 's/><option.*$/>";/' -e 's|^doc.*|for(p=18;++p<23;)a+="<option>\&#98"+p+";</option>";document.write(a);|' \
    1.25 +		index.html
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +        mkdir -p $fs/var/www/chess
    1.32 +	cp $src/index.html $fs/var/www/chess
    1.33 +}
    1.34 +