unpack .tar.xz archives

This commit is contained in:
Mark Brand 2011-01-21 11:37:49 +01:00
parent 30191c0c62
commit 0d2b6b3126
1 changed files with 2 additions and 1 deletions

View File

@ -44,8 +44,9 @@ UNPACK_ARCHIVE = \
$(if $(filter %.tar.gz, $(1)),tar xzf '$(1)', \
$(if $(filter %.tar.bz2, $(1)),tar xjf '$(1)', \
$(if $(filter %.tar.lzma,$(1)),xz -dc -F lzma '$(1)' | tar xf -, \
$(if $(filter %.tar.xz,$(1)),xz -dc '$(1)' | tar xf -, \
$(if $(filter %.zip, $(1)),unzip -q '$(1)', \
$(error Unknown archive format: $(1)))))))
$(error Unknown archive format: $(1))))))))
UNPACK_PKG_ARCHIVE = \
$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE))