wok-current annotate othello/receipt @ rev 17727

ibedit: add -ltinfo in LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 05 22:31:32 2015 +0100 (2015-03-05)
parents 2b260f668fef
children 6a937d641b10
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@8947 7 TARBALL="$PACKAGE-$VERSION.tar.lzma"
pascal@7047 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15611 9 LICENSE="MIT"
pascal@7047 10 WEB_SITE="http://www.posi.net/software/othello/"
pascal@7047 11
pascal@7047 12 # Rules to configure and make the package.
pascal@7047 13 compile_rules()
pascal@7047 14 {
pascal@7047 15 mkdir -p $src/images 2> /dev/null
pascal@7047 16 cd $src
slaxemulator@8982 17 if [ ! -s othello.js ]; then
slaxemulator@8982 18 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
slaxemulator@8982 19 unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf -
slaxemulator@8982 20 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 21 else
slaxemulator@8982 22 wget -O $SOURCES_REPOSITORY/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL &&
slaxemulator@8982 23 unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf -
slaxemulator@8982 24 mv $PACKAGE-$VERSION/* .
slaxemulator@8982 25 fi
pascal@8947 26 fi
slaxemulator@8982 27 #for i in index.html othello.js \
slaxemulator@8982 28 # images/blank.gif images/white.gif images/black.gif \
slaxemulator@8982 29 # images/white-trans.gif images/black-trans.gif ; do
slaxemulator@8982 30 # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i
slaxemulator@8982 31 #done
pascal@7047 32 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html
pascal@7047 33 }
pascal@7047 34
pascal@7047 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7047 36 genpkg_rules()
pascal@7047 37 {
pascal@7047 38 mkdir -p $fs/var/www/othello $fs/usr/share/applications
pascal@7047 39 cp -a $src/* $fs/var/www/othello
pascal@7047 40 chown -R 80.80 $fs/var/www/othello
pascal@7047 41 cat > $fs/usr/share/applications/othello.desktop <<EOT
pascal@7047 42 [Desktop Entry]
pascal@7047 43 Type=Application
pascal@7047 44 Name=Othello
slaxemulator@9600 45 Exec=browser file:///var/www/othello/index.html
pascal@7047 46 Icon=/var/www/othello/images/black.gif
pascal@7047 47 Terminal=false
pascal@7047 48 Categories=Game;
pascal@7047 49 Comment=Othello game
pascal@7047 50 EOT
pascal@7047 51 }
pascal@7047 52