wok-current rev 8947

othello: get tarball from slitaz mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 01 23:18:31 2011 +0100 (2011-03-01)
parents f09b3af74c7c
children e2dd4c43c979
files othello/receipt
line diff
     1.1 --- a/othello/receipt	Tue Mar 01 16:55:18 2011 +0000
     1.2 +++ b/othello/receipt	Tue Mar 01 23:18:31 2011 +0100
     1.3 @@ -4,6 +4,7 @@
     1.4  VERSION="1.0"
     1.5  CATEGORY="games"
     1.6  SHORT_DESC="Othello game in javascript"
     1.7 +TARBALL="$PACKAGE-$VERSION.tar.lzma"
     1.8  MAINTAINER="pascal.bellard@slitaz.org"
     1.9  WEB_SITE="http://www.posi.net/software/othello/"
    1.10  
    1.11 @@ -12,6 +13,11 @@
    1.12  {
    1.13  	mkdir -p $src/images 2> /dev/null
    1.14  	cd $src
    1.15 +	if [ ! -s othello.js ] &&
    1.16 +		wget http://mirror.slitaz.org/sources/packages/o/$TARBALL; then
    1.17 +		unlzma -c $TARBALL | tar xf -
    1.18 +		mv $PACKAGE-$VERSION/* .
    1.19 +	fi
    1.20  	for i in index.html othello.js \
    1.21  		images/blank.gif images/white.gif images/black.gif \
    1.22  		images/white-trans.gif images/black-trans.gif ; do