add tar file to archive format

This commit is contained in:
Martin Müllenhaupt 2019-08-06 15:15:42 +02:00 committed by mabrand
parent 7311aaf0d9
commit aae03b205f
1 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ SHORT_PKG_VERSION = \
$(word 1,$(subst ., ,$($(1)_VERSION))).$(word 2,$(subst ., ,$($(1)_VERSION)))
UNPACK_ARCHIVE = \
$(if $(filter %.tar, $(1)),tar xf '$(1)', \
$(if $(filter %.tgz, $(1)),tar xzf '$(1)', \
$(if $(filter %.tar.gz, $(1)),tar xzf '$(1)', \
$(if $(filter %.tar.Z, $(1)),tar xzf '$(1)', \
@ -242,7 +243,7 @@ UNPACK_ARCHIVE = \
$(if $(filter %.7z, $(1)),7za x '$(1)', \
$(if $(filter %.zip, $(1)),unzip -q '$(1)', \
$(if $(filter %.deb, $(1)),ar x '$(1)' && tar xf data.tar*, \
$(error Unknown archive format: $(1))))))))))))))
$(error Unknown archive format: $(1)))))))))))))))
UNPACK_PKG_ARCHIVE = \
$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE))