wok-6.x annotate checkers/receipt @ rev 7620
Add caps
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Dec 12 17:10:44 2010 +0000 (2010-12-12) |
parents | 102ab96cd90b |
children | 32603e95ce6e |
rev | line source |
---|---|
pascal@7046 | 1 # SliTaz package receipt. |
pascal@7046 | 2 |
pascal@7046 | 3 PACKAGE="checkers" |
pascal@7046 | 4 VERSION="1.0" |
pascal@7046 | 5 CATEGORY="games" |
pascal@7046 | 6 SHORT_DESC="Checkers game in javascript" |
pascal@7046 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@7046 | 8 WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm" |
pascal@7046 | 9 |
pascal@7046 | 10 # Rules to configure and make the package. |
pascal@7046 | 11 compile_rules() |
pascal@7046 | 12 { |
pascal@7046 | 13 mkdir $src |
pascal@7046 | 14 cd $src |
pascal@7046 | 15 for i in Dames.htm black.gif gray.gif \ |
pascal@7046 | 16 me1k.gif me2k.gif you1k.gif you2k.gif \ |
pascal@7046 | 17 me1.gif me2.gif you1.gif you2.gif ; do |
pascal@7046 | 18 [ -s $i ] || wget $(dirname $WEB_SITE)/$i |
pascal@7046 | 19 done |
pascal@7046 | 20 grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 |
pascal@7046 | 21 sed -i -e 's|TITLE>.*</TITLE|TITLE>Checkers</TITLE|' \ |
pascal@7046 | 22 -e 's|background="nth_brown_bg.gif" ||' \ |
pascal@7046 | 23 -e 's|cellpadding=0|& align=center|' \ |
pascal@7046 | 24 -e '/Vous devez commencer/d' \ |
pascal@7046 | 25 -e '/version = 1.0;/,/Checkers Game/d' \ |
pascal@7046 | 26 -e '/wrap=virtual/d' \ |
pascal@7046 | 27 -e '/marrer le jeu/d' \ |
pascal@7046 | 28 -e '/Dames_htm_smartbutton1/d' \ |
pascal@7046 | 29 -e 's|table><br>"|&);|' \ |
pascal@7046 | 30 Dames.htm |
pascal@7046 | 31 } |
pascal@7046 | 32 |
pascal@7046 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7046 | 34 genpkg_rules() |
pascal@7046 | 35 { |
pascal@7046 | 36 mkdir -p $fs/var/www/checkers $fs/usr/share/applications |
pascal@7046 | 37 cp $src/* $fs/var/www/checkers |
pascal@7046 | 38 mv $fs/var/www/checkers/Dames.htm $fs/var/www/checkers/index.html |
pascal@7046 | 39 chown -R 80.80 $fs/var/www/checkers |
pascal@7046 | 40 cat > $fs/usr/share/applications/checkers.desktop <<EOT |
pascal@7046 | 41 [Desktop Entry] |
pascal@7046 | 42 Type=Application |
pascal@7046 | 43 Name=Checkers |
pascal@7125 | 44 Exec=GtkLauncher file:///var/www/checkers/index.html |
pascal@7046 | 45 Icon=/var/www/checkers/you1.gif |
pascal@7046 | 46 Terminal=false |
pascal@7046 | 47 Categories=Game; |
pascal@7046 | 48 Comment=Checkers game |
pascal@7046 | 49 EOT |
pascal@7046 | 50 } |
pascal@7046 | 51 |