# HG changeset patch # User Pascal Bellard # Date 1288605170 -3600 # Node ID 102ab96cd90b31327c32bdaceea00c96853b525d # Parent 181f67b201072bc26da431d1299836db2688d02e Add checkers diff -r 181f67b20107 -r 102ab96cd90b checkers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/checkers/receipt Mon Nov 01 10:52:50 2010 +0100 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="checkers" +VERSION="1.0" +CATEGORY="games" +SHORT_DESC="Checkers game in javascript" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir $src + cd $src + for i in Dames.htm black.gif gray.gif \ + me1k.gif me2k.gif you1k.gif you2k.gif \ + me1.gif me2.gif you1.gif you2.gif ; do + [ -s $i ] || wget $(dirname $WEB_SITE)/$i + done + grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 + sed -i -e 's|TITLE>.*Checkers
"|&);|' \ + Dames.htm +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/var/www/checkers $fs/usr/share/applications + cp $src/* $fs/var/www/checkers + mv $fs/var/www/checkers/Dames.htm $fs/var/www/checkers/index.html + chown -R 80.80 $fs/var/www/checkers + cat > $fs/usr/share/applications/checkers.desktop <