wok-current rev 7046
Add checkers
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 01 10:52:50 2010 +0100 (2010-11-01) |
parents | 181f67b20107 |
children | de6168c0aa90 |
files | checkers/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/checkers/receipt Mon Nov 01 10:52:50 2010 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="checkers" 1.7 +VERSION="1.0" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Checkers game in javascript" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm" 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 + for i in Dames.htm black.gif gray.gif \ 1.19 + me1k.gif me2k.gif you1k.gif you2k.gif \ 1.20 + me1.gif me2.gif you1.gif you2.gif ; do 1.21 + [ -s $i ] || wget $(dirname $WEB_SITE)/$i 1.22 + done 1.23 + grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 1.24 + sed -i -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \ 1.25 + -e 's|background="nth_brown_bg.gif" ||' \ 1.26 + -e 's|cellpadding=0|& align=center|' \ 1.27 + -e '/Vous devez commencer/d' \ 1.28 + -e '/version = 1.0;/,/Checkers Game/d' \ 1.29 + -e '/wrap=virtual/d' \ 1.30 + -e '/marrer le jeu/d' \ 1.31 + -e '/Dames_htm_smartbutton1/d' \ 1.32 + -e 's|table><br>"|&);|' \ 1.33 + Dames.htm 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + mkdir -p $fs/var/www/checkers $fs/usr/share/applications 1.40 + cp $src/* $fs/var/www/checkers 1.41 + mv $fs/var/www/checkers/Dames.htm $fs/var/www/checkers/index.html 1.42 + chown -R 80.80 $fs/var/www/checkers 1.43 + cat > $fs/usr/share/applications/checkers.desktop <<EOT 1.44 +[Desktop Entry] 1.45 +Type=Application 1.46 +Name=Checkers 1.47 +Exec=browser file:///var/www/checkers/index.html 1.48 +Icon=/var/www/checkers/you1.gif 1.49 +Terminal=false 1.50 +Categories=Game; 1.51 +Comment=Checkers game 1.52 +EOT 1.53 +} 1.54 +