wok-current view othello/receipt @ rev 8965
Updated avidemux, xorg-xrdb, cairo, and weechat depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Mar 02 02:15:41 2011 +0000 (2011-03-02) |
parents | 717afcb65646 |
children | c2e7ccf93d10 |
line source
1 # SliTaz package receipt.
3 PACKAGE="othello"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Othello game in javascript"
7 TARBALL="$PACKAGE-$VERSION.tar.lzma"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 WEB_SITE="http://www.posi.net/software/othello/"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 mkdir -p $src/images 2> /dev/null
15 cd $src
16 if [ ! -s othello.js ] &&
17 wget http://mirror.slitaz.org/sources/packages/o/$TARBALL; then
18 unlzma -c $TARBALL | tar xf -
19 mv $PACKAGE-$VERSION/* .
20 fi
21 for i in index.html othello.js \
22 images/blank.gif images/white.gif images/black.gif \
23 images/white-trans.gif images/black-trans.gif ; do
24 [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
25 done
26 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/var/www/othello $fs/usr/share/applications
33 cp -a $src/* $fs/var/www/othello
34 chown -R 80.80 $fs/var/www/othello
35 cat > $fs/usr/share/applications/othello.desktop <<EOT
36 [Desktop Entry]
37 Type=Application
38 Name=Othello
39 Exec=GtkLauncher file:///var/www/othello/index.html
40 Icon=/var/www/othello/images/black.gif
41 Terminal=false
42 Categories=Game;
43 Comment=Othello game
44 EOT
45 }