1 ifeq ($(strip $(PKG_UNPACK)),)
2 ifneq ($(strip $(PKG_CAT)),)
4 PKG_UNPACK:=$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS)
5 ifeq ($(PKG_CAT),unzip)
6 PKG_UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
8 # replace zcat with $(ZCAT), because some system have it as gzcat
10 PKG_UNPACK:=$(ZCAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/.. $(TAR_OPTIONS)
13 # try to autodetect file type