changeset 5820:6bcf5c550648

build: Add support for zstd compressed archives (bug #61008). * Makefile.in: Add filter and commands for .zst archives.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Wed, 04 Aug 2021 12:40:03 +0900
parents 9cddbf0c85fa
children 519afcb6468a
files Makefile.in
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Mon Aug 02 19:21:31 2021 +0200
+++ b/Makefile.in	Wed Aug 04 12:40:03 2021 +0900
@@ -580,8 +580,9 @@
     $(if $(filter %.tar.lz, $(1)),$(3) xaf '$(1)', \
     $(if $(filter %.tar.lzma,$(1)),xz -dc -F lzma '$(1)' | $(3) xf -, \
     $(if $(filter %.tar.xz,$(1)),xz -dc '$(1)' | $(3) xf -, \
+    $(if $(filter %.tar.zst,$(1)),zstd -dc '$(1)' | $(3) xf -, \
     $(if $(filter %.zip,     $(1)),unzip -q '$(1)', \
-    $(error Unknown archive format for $(2): $(1)))))))))
+    $(error Unknown archive format for $(2): $(1))))))))))
 
 UNPACK_PKG_ARCHIVE = \
     $(if $(value $(1)_FILE),$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE),$(1),$(2)),true)