tazwok rev 174

tazwok: add tar.xz support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 15 18:31:23 2010 +0200 (2010-08-15)
parents 7efd3858314d
children db7857c33e54
files tazwok
line diff
     1.1 --- a/tazwok	Sun Aug 15 17:34:09 2010 +0200
     1.2 +++ b/tazwok	Sun Aug 15 18:31:23 2010 +0200
     1.3 @@ -336,6 +336,7 @@
     1.4  				*zip|*xpi) ( cd $WOK/$PACKAGE; unzip -o $SOURCES_REPOSITORY/$TARBALL );;
     1.5  				*bz2) tar xjf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE;;
     1.6  				*tar) tar xf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE;;
     1.7 +				*xz) unxz -c $SOURCES_REPOSITORY/$TARBALL | tar xf - -C $WOK/$PACKAGE;;
     1.8  				*Z) tar xZf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE;;
     1.9  				*) tar xzf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE;;
    1.10  				esac