summaryrefslogtreecommitdiff
path: root/app-arch/unp/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-22 13:05:00 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-22 13:05:00 +0100
commita0013b371da9dea58a8162de25366019c330f12a (patch)
tree4ff85da49921d01853f8462c9e0f97fff23d6f20 /app-arch/unp/files
parente829c701ef0e08a4de1993bbe9906e0a6e2cc8b7 (diff)
app-arch/unp : import from gentoo, add zstd support
Diffstat (limited to 'app-arch/unp/files')
-rw-r--r--app-arch/unp/files/zstd-support.patch28
1 files changed, 28 insertions, 0 deletions
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" ]
+ ],