wok-tiny view nanochess/receipt @ rev 57
busybox: add nc & ether-wake
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 07 17:57:16 2011 +0200 (2011-07-07) |
parents | 9c86add36e99 |
children | 8cb0d15c82ba |
line source
1 # SliTaz package receipt.
3 PACKAGE="nanochess"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Chess game in javascript (needs an unicode aware browser)"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://nanochess.110mb.com/chess4.html"
10 # Rules to configure and make the package.
11 compile_rules()
12 {
13 mkdir $src
14 cd $src
15 wget -O index.html \
16 $(dirname $WEB_SITE)/archive/toledo_javascript_chess_3.html
17 sed -i -e 's/<select/\♟ \→ &/' \
18 -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \
19 -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \
20 -e 's/f0f":"c0c")+"0f0/f0f":"606")+"0c0/' -e 's/e0e0f0/b0b080/' \
21 -e 's/><option.*$/>";/' -e 's|^doc.*|for(p=18;++p<23;)a+="<option>\b"+p+";</option>";document.write(a);|' \
22 index.html
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/var/www/chess
29 cp $src/index.html $fs/var/www/chess
30 }