wok-6.x rev 4954

xarchive: add lrzip support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 17 16:44:15 2010 +0100 (2010-02-17)
parents 63e7094a41cb
children a93b9fa277ad
files xarchive/receipt xarchive/stuff/slitaz-wrap.sh
line diff
     1.1 --- a/xarchive/receipt	Wed Feb 17 09:45:16 2010 +0000
     1.2 +++ b/xarchive/receipt	Wed Feb 17 16:44:15 2010 +0100
     1.3 @@ -8,7 +8,8 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  DEPENDS="gtk+ xorg-libXdamage"
     1.6  BUILD_DEPENDS="pkg-config gtk+ gtk+-dev"
     1.7 -SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract xz"
     1.8 +SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract \
     1.9 +xz lrzip"
    1.10  WEB_SITE="http://xarchive.sourceforge.net/"
    1.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.12  
     2.1 --- a/xarchive/stuff/slitaz-wrap.sh	Wed Feb 17 09:45:16 2010 +0000
     2.2 +++ b/xarchive/stuff/slitaz-wrap.sh	Wed Feb 17 16:44:15 2010 +0100
     2.3 @@ -26,9 +26,11 @@
     2.4  COMPRESS_EXTS="tar.z tar.Z"
     2.5  TAR_EXTS="tar tar.gz tgz $LZMA_EXTS $BZIP2_EXTS $COMPRESS_EXTS"
     2.6  XZ_EXTS="tar.xz txz"
     2.7 +LRZIP_EXTS="tar.lzr tlzr"
     2.8  IPK_EXTS="ipk"
     2.9  CPIO_EXTS="cpio cpio.gz"
    2.10  CPIOXZ_EXTS="cpio.xz"
    2.11 +CPIOLRZIP_EXTS="cpio.lzr"
    2.12  ZIP_EXTS="zip cbz jar"
    2.13  RPM_EXTS="rpm"
    2.14  DEB_EXTS="deb udeb"
    2.15 @@ -93,6 +95,7 @@
    2.16  bunzip2\ -c		bzip2\ -c		$BZIP2_EXTS
    2.17  gzip\ -dc		gzip\ -c		$GZIP_EXTS
    2.18  xz\ -dc			xz\ -c			$XZ_EXTS $CPIOXZ_EXTS
    2.19 +lrzip\ -d		lrzip			$LRZIP_EXTS $CPIOLRZIP_EXTS
    2.20  uncompress\ -dc		compress\ -c		$COMPRESS_EXTS
    2.21  rpm2cpio		false			$RPM_EXTS
    2.22  tazpkg2cpio		false			$TAZPKG_EXTS
    2.23 @@ -189,7 +192,7 @@
    2.24  shift
    2.25  tardir="$(dirname "$archive")"
    2.26  if not_busybox tar && [ "$action" != "-n" ]; then
    2.27 -	case " $TAR_EXTS $XZ_EXTS " in *\ $lc_ext\ *)
    2.28 +	case " $TAR_EXTS $XZ_EXTS $LRZIP_EXTS " in *\ $lc_ext\ *)
    2.29  		decompress_func
    2.30  		case "$action" in
    2.31  		-r)	tar --delete -f "$archive" "$@";;
    2.32 @@ -227,8 +230,8 @@
    2.33  		exit $status
    2.34  	esac
    2.35  done <<EOT
    2.36 -tar\ -cf\ -	tar\ -xf\ -			$TAR_EXTS $XZ_EXTS
    2.37 -addcpio		cpio\ -id\ >\ /dev/null		$CPIO_EXTS $CPIOXZ_EXTS
    2.38 +tar\ -cf\ -	tar\ -xf\ -			$TAR_EXTS $XZ_EXTS $LRZIP_EXTS
    2.39 +addcpio		cpio\ -id\ >\ /dev/null		$CPIO_EXTS $CPIOXZ_EXTS $CPIOLRZIP_EXTS
    2.40  EOT
    2.41  }
    2.42  
    2.43 @@ -246,6 +249,7 @@
    2.44  rpm2cpio	$RPM_EXTS
    2.45  mount		$ISO_EXTS $FS_EXTS
    2.46  xz		$XZ_EXTS $CPIOXZ_EXTS
    2.47 +lrzip		$LRZIP_EXTS $CPIOLRZIP_EXTS
    2.48  rar		$RAR_EXTS
    2.49  unace		ace
    2.50  arj		$ARJ_EXTS
    2.51 @@ -324,8 +328,8 @@
    2.52  }'
    2.53  		esac
    2.54  	done <<EOT
    2.55 -cpio\ -tv	$CPIO_EXTS $CPIOXZ_EXTS $RPM_EXTS $TAZPKG_EXTS
    2.56 -tar\ -tvf\ -	$TAR_EXTS $XZ_EXTS $IPK_EXTS
    2.57 +cpio\ -tv	$CPIO_EXTS $CPIOXZ_EXTS $CPIOLRZIP_EXTS $RPM_EXTS $TAZPKG_EXTS
    2.58 +tar\ -tvf\ -	$TAR_EXTS $XZ_EXTS $LRZIP_EXTS $IPK_EXTS
    2.59  dpkg_c		$DEB_EXTS
    2.60  EOT
    2.61  	loop_fs $opt
    2.62 @@ -502,8 +506,8 @@
    2.63  			exit $?
    2.64  		esac
    2.65  	done <<EOT
    2.66 -tar\ -xf\ -	$TAR_EXTS $IPK_EXTS $XZ_EXTS
    2.67 -cpio\ -idm	$CPIO_EXTS $CPIOXZ_EXTS $RPM_EXTS $TAZPKG_EXTS
    2.68 +tar\ -xf\ -	$TAR_EXTS $IPK_EXTS $XZ_EXTS $LRZIP_EXTS
    2.69 +cpio\ -idm	$CPIO_EXTS $CPIOXZ_EXTS $CPIOLRZIP_EXTS $RPM_EXTS $TAZPKG_EXTS
    2.70  EOT
    2.71  	while read exe x p exts; do
    2.72  		[ "$(which $exe)" ] || continue