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