From a0013b371da9dea58a8162de25366019c330f12a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Oct 2022 13:05:00 +0100 Subject: app-arch/unp : import from gentoo, add zstd support --- app-arch/unp/files/zstd-support.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app-arch/unp/files/zstd-support.patch (limited to 'app-arch/unp/files') diff --git a/app-arch/unp/files/zstd-support.patch b/app-arch/unp/files/zstd-support.patch new file mode 100644 index 00000000..849fcf9b --- /dev/null +++ b/app-arch/unp/files/zstd-support.patch @@ -0,0 +1,28 @@ +diff --git a/unp b/unp-with-zstd +old mode 100644 +new mode 100755 +index a633f67..33de8d0 +--- a/unp ++++ b/unp-with-zstd +@@ -148,6 +148,10 @@ use constant + [ [ "bzip2" ], "tar", "--bzip2", "-x", "-v", "-f"] + ], + ++ [ gettext("tar with zstd"), "tar.zst|tzst", undef, 0, ++ [ [ "zstd" ], "tar", "--zstd", "-x", "-v", "-f"] ++ ], ++ + [ gettext("tar with xz-utils"), "tar.xz|txz", undef, 0, + + [ [ "xz" ], "tar", "--xz", "-x", "-v", "-f"] +@@ -187,6 +191,10 @@ use constant + [ "xzcat" ] + ], + ++ [ "zstd", "zst", "zstd.compressed", IS_STREAM_FILTER, ++ [ "zstd", "-cd" ] ++ ], ++ + [ "lzip", "lz", "lzip.compressed", IS_STREAM_FILTER, + [ "lzip", "-cd" ] + ], -- cgit v1.2.3