wok-6.x annotate othello/receipt @ rev 7178

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