# SliTaz package receipt.
PACKED_SIZE="16.0K"
UNPACKED_SIZE="32.0K"
PACKAGE="nanochess"
VERSION="1.0"
CATEGORY="games"
SHORT_DESC="Chess game in javascript (needs an unicode aware browser)"
MAINTAINER="pascal.bellard@slitaz.org"
WEB_SITE="http://nanochess.110mb.com/chess4.html"
# Rules to configure and make the package.
compile_rules()
{
mkdir $src
cd $src
wget -O index.html \
$(dirname $WEB_SITE)/archive/toledo_javascript_chess_3.html
sed -i -e 's/";/' -e 's|^doc.*|for(p=18;++p<23;)a+="";document.write(a);|' \
index.html
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/var/www/chess
cp $src/index.html $fs/var/www/chess
}