wok-next view othello/receipt @ rev 8316

Fixed babl again.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 01 03:09:44 2011 +0000 (2011-02-01)
parents de6168c0aa90
children 3a528b002257
line source
1 # SliTaz package receipt.
3 PACKAGE="othello"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Othello game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.posi.net/software/othello/"
10 # Rules to configure and make the package.
11 compile_rules()
12 {
13 mkdir -p $src/images 2> /dev/null
14 cd $src
15 for i in index.html othello.js \
16 images/blank.gif images/white.gif images/black.gif \
17 images/white-trans.gif images/black-trans.gif ; do
18 [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
19 done
20 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www/othello $fs/usr/share/applications
27 cp -a $src/* $fs/var/www/othello
28 chown -R 80.80 $fs/var/www/othello
29 cat > $fs/usr/share/applications/othello.desktop <<EOT
30 [Desktop Entry]
31 Type=Application
32 Name=Othello
33 Exec=GtkLauncher file:///var/www/othello/index.html
34 Icon=/var/www/othello/images/black.gif
35 Terminal=false
36 Categories=Game;
37 Comment=Othello game
38 EOT
39 }