wok diff othello/receipt @ rev 7047

Add othello
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 01 10:53:10 2010 +0100 (2010-11-01)
parents
children 717afcb65646
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/othello/receipt	Mon Nov 01 10:53:10 2010 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="othello"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Othello game in javascript"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.posi.net/software/othello/"
    1.12 +
    1.13 +# Rules to configure and make the package.
    1.14 +compile_rules()
    1.15 +{
    1.16 +	mkdir -p $src/images 2> /dev/null
    1.17 +	cd $src
    1.18 +	for i in index.html othello.js \
    1.19 +		images/blank.gif images/white.gif images/black.gif \
    1.20 +		images/white-trans.gif images/black-trans.gif ; do
    1.21 +		[ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
    1.22 +	done
    1.23 +	sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +        mkdir -p $fs/var/www/othello $fs/usr/share/applications
    1.30 +	cp -a $src/* $fs/var/www/othello
    1.31 +	chown -R 80.80 $fs/var/www/othello
    1.32 +	cat > $fs/usr/share/applications/othello.desktop <<EOT
    1.33 +[Desktop Entry]
    1.34 +Type=Application
    1.35 +Name=Othello
    1.36 +Exec=browser file:///var/www/othello/index.html
    1.37 +Icon=/var/www/othello/images/black.gif
    1.38 +Terminal=false
    1.39 +Categories=Game;
    1.40 +Comment=Othello game
    1.41 +EOT
    1.42 +}
    1.43 +