# HG changeset patch # User Christopher Rogers # Date 1299422255 0 # Node ID 32603e95ce6e7207f781bbc70d2603fc77d96e5d # Parent 50f89a1e4792f7c981e1e2f73893fd855f01be5d Made checkers download sources for archive. diff -r 50f89a1e4792 -r 32603e95ce6e checkers/receipt --- a/checkers/receipt Sun Mar 06 14:13:29 2011 +0000 +++ b/checkers/receipt Sun Mar 06 14:37:35 2011 +0000 @@ -5,18 +5,29 @@ CATEGORY="games" SHORT_DESC="Checkers game in javascript" MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.lzma" WEB_SITE="http://thierry.franquin.free.fr/jeudame/Dames.htm" # Rules to configure and make the package. compile_rules() { - mkdir $src + + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then + unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - + else + mkdir -p $src/$PACKAGE-$VERSION + for i in Dames.htm black.gif gray.gif \ + me1k.gif me2k.gif you1k.gif you2k.gif \ + me1.gif me2.gif you1.gif you2.gif ; do + [ -s $i ] || wget -O $src/$PACKAGE-$VERSION/$i $(dirname $WEB_SITE)/$i + done + cd $src + tar -c * | lzma e $SOURCES_REPOSITORY/$TARBALL -si + mv $PACKAGE-$VERSION/* . + rm -rf $PACKAGE-$VERSION + fi + cd $src - for i in Dames.htm black.gif gray.gif \ - me1k.gif me2k.gif you1k.gif you2k.gif \ - me1.gif me2.gif you1.gif you2.gif ; do - [ -s $i ] || wget $(dirname $WEB_SITE)/$i - done grep -qs Dames_htm_smartbutton1 Dames.htm || return 0 sed -i -e 's|TITLE>.*Checkers