# HG changeset patch # User Pascal Bellard # Date 1266421455 -3600 # Node ID ac195e0fe6bf89ceabfab36aa4728d9371571115 # Parent 63e7094a41cb7b609d6a17cf7a67edfd3e3691b5 xarchive: add lrzip support diff -r 63e7094a41cb -r ac195e0fe6bf xarchive/receipt --- a/xarchive/receipt Wed Feb 17 09:45:16 2010 +0000 +++ b/xarchive/receipt Wed Feb 17 16:44:15 2010 +0100 @@ -8,7 +8,8 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" DEPENDS="gtk+ xorg-libXdamage" BUILD_DEPENDS="pkg-config gtk+ gtk+-dev" -SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract xz" +SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract \ +xz lrzip" WEB_SITE="http://xarchive.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" diff -r 63e7094a41cb -r ac195e0fe6bf xarchive/stuff/slitaz-wrap.sh --- a/xarchive/stuff/slitaz-wrap.sh Wed Feb 17 09:45:16 2010 +0000 +++ b/xarchive/stuff/slitaz-wrap.sh Wed Feb 17 16:44:15 2010 +0100 @@ -26,9 +26,11 @@ COMPRESS_EXTS="tar.z tar.Z" TAR_EXTS="tar tar.gz tgz $LZMA_EXTS $BZIP2_EXTS $COMPRESS_EXTS" XZ_EXTS="tar.xz txz" +LRZIP_EXTS="tar.lzr tlzr" IPK_EXTS="ipk" CPIO_EXTS="cpio cpio.gz" CPIOXZ_EXTS="cpio.xz" +CPIOLRZIP_EXTS="cpio.lzr" ZIP_EXTS="zip cbz jar" RPM_EXTS="rpm" DEB_EXTS="deb udeb" @@ -93,6 +95,7 @@ bunzip2\ -c bzip2\ -c $BZIP2_EXTS gzip\ -dc gzip\ -c $GZIP_EXTS xz\ -dc xz\ -c $XZ_EXTS $CPIOXZ_EXTS +lrzip\ -d lrzip $LRZIP_EXTS $CPIOLRZIP_EXTS uncompress\ -dc compress\ -c $COMPRESS_EXTS rpm2cpio false $RPM_EXTS tazpkg2cpio false $TAZPKG_EXTS @@ -189,7 +192,7 @@ shift tardir="$(dirname "$archive")" if not_busybox tar && [ "$action" != "-n" ]; then - case " $TAR_EXTS $XZ_EXTS " in *\ $lc_ext\ *) + case " $TAR_EXTS $XZ_EXTS $LRZIP_EXTS " in *\ $lc_ext\ *) decompress_func case "$action" in -r) tar --delete -f "$archive" "$@";; @@ -227,8 +230,8 @@ exit $status esac done <\ /dev/null $CPIO_EXTS $CPIOXZ_EXTS +tar\ -cf\ - tar\ -xf\ - $TAR_EXTS $XZ_EXTS $LRZIP_EXTS +addcpio cpio\ -id\ >\ /dev/null $CPIO_EXTS $CPIOXZ_EXTS $CPIOLRZIP_EXTS EOT } @@ -246,6 +249,7 @@ rpm2cpio $RPM_EXTS mount $ISO_EXTS $FS_EXTS xz $XZ_EXTS $CPIOXZ_EXTS +lrzip $LRZIP_EXTS $CPIOLRZIP_EXTS rar $RAR_EXTS unace ace arj $ARJ_EXTS @@ -324,8 +328,8 @@ }' esac done <