wok-stable diff v4l-dvb/receipt @ rev 5559

dillo-hg, libffcall, v4l-dvb: cache fetched files in SOURCES_REPOSITORY
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 14 10:35:21 2010 +0200 (2010-05-14)
parents d6f7312a4e69
children a11358feced4
line diff
     1.1 --- a/v4l-dvb/receipt	Thu Dec 17 18:36:13 2009 +0100
     1.2 +++ b/v4l-dvb/receipt	Fri May 14 10:35:21 2010 +0200
     1.3 @@ -12,7 +12,15 @@
     1.4  
     1.5  # Rules to configure and make the package.
     1.6  compile_rules() {
     1.7 -  [ -d $PACKAGE-$VERSION ] || hg clone $WEB_SITE $PACKAGE-$VERSION
     1.8 +  TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz
     1.9 +  if [ -d $PACKAGE-$VERSION ]; then
    1.10 +	true
    1.11 +  elif [ -f $TARBALL ]; then
    1.12 +	tar xzf $TARBALL
    1.13 +  else
    1.14 +	hg clone $WEB_SITE $PACKAGE-$VERSION
    1.15 +	tar czf $TARBALL $PACKAGE-$VERSION
    1.16 +  fi
    1.17    cd $src
    1.18    KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.19    IFS="." ; set -- $KERNEL_VERSION ; unset IFS