wok rev 7045

Add nanochess & p4wn
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 01 10:52:35 2010 +0100 (2010-11-01)
parents 8e6734b0589d
children 102ab96cd90b
files nanochess/receipt p4wn/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nanochess/receipt	Mon Nov 01 10:52:35 2010 +0100
     1.3 @@ -0,0 +1,40 @@
     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/f0f":"c0c")+"0f0/f0f":"606")+"0c0/' -e 's/e0e0f0/b0b080/' \
    1.22 +	  -e 's/><option.*$/>";/' -e 's|^doc.*|for(p=18;++p<23;)a+="<option>\&#98"+p+";</option>";document.write(a);|' \
    1.23 +		index.html
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +        mkdir -p $fs/var/www/chess $fs/usr/share/applications
    1.30 +	cp $src/* $fs/var/www/chess
    1.31 +	chown -R 80.80 $fs/var/www/chess
    1.32 +	cat > $fs/usr/share/applications/chess.desktop <<EOT
    1.33 +[Desktop Entry]
    1.34 +Type=Application
    1.35 +Name=Chess
    1.36 +Exec=browser file:///var/www/chess/index.html
    1.37 +Icon=other.png
    1.38 +Terminal=false
    1.39 +Categories=Game;
    1.40 +Comment=Chess game
    1.41 +EOT
    1.42 +}
    1.43 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/p4wn/receipt	Mon Nov 01 10:52:35 2010 +0100
     2.3 @@ -0,0 +1,41 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="p4wn"
     2.7 +VERSION="1.0"
     2.8 +CATEGORY="games"
     2.9 +SHORT_DESC="Chess game in javascript"
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +WEB_SITE="http://p4wn.sourceforge.net/"
    2.12 +TARBALL="sven_vehars_fancy_version.zip"
    2.13 +
    2.14 +# Rules to configure and make the package.
    2.15 +compile_rules()
    2.16 +{
    2.17 +	mkdir $src
    2.18 +	cd $src
    2.19 +	[ -s $SOURCES_REPOSITORY/$TARBALL ] ||
    2.20 +	wget $WEB_SITE/downloads/$TARBALL -P $SOURCES_REPOSITORY
    2.21 +	[ -s index.html ] || unzip $SOURCES_REPOSITORY/$TARBALL
    2.22 +	sed -i '/background-image/d' *.css
    2.23 +	sed -i 's|title>.*</title|title>Chess</title|' index.html
    2.24 +}
    2.25 +
    2.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.27 +genpkg_rules()
    2.28 +{
    2.29 +        mkdir -p $fs/var/www/chess $fs/usr/share/applications
    2.30 +	cp $src/* $fs/var/www/chess
    2.31 +	rm -f $fs/var/www/chess/README $fs/var/www/chess/*background.png
    2.32 +	chown -R 80.80 $fs/var/www/chess
    2.33 +	cat > $fs/usr/share/applications/chess.desktop <<EOT
    2.34 +[Desktop Entry]
    2.35 +Type=Application
    2.36 +Name=Chess
    2.37 +Exec=browser file:///var/www/chess/index.html
    2.38 +Icon=/var/www/chess/2.gif
    2.39 +Terminal=false
    2.40 +Categories=Game;
    2.41 +Comment=Chess game
    2.42 +EOT
    2.43 +}
    2.44 +