zic: use <PKG>_STRIP_COMPONENTS
authorLuca Ceresoli <luca@lucaceresoli.net>
Sat, 11 Jul 2015 14:15:09 +0000 (16:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 11 Jul 2015 22:51:34 +0000 (00:51 +0200)
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/zic/zic.mk

index a768ac6cfd59ad005f605fd6502ea21613729909..03e023ae4ff46d80958e18672d633188efb886b7 100644 (file)
@@ -7,14 +7,9 @@
 ZIC_VERSION = 2015e
 ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
 ZIC_SITE = ftp://ftp.iana.org/tz/releases
+ZIC_STRIP_COMPONENTS = 0
 ZIC_LICENSE = Public domain
 
-# Don't strip any path components during extraction.
-define HOST_ZIC_EXTRACT_CMDS
-       gzip -d -c $(DL_DIR)/$(ZIC_SOURCE) \
-               | $(TAR) --strip-components=0 -C $(@D) -xf -
-endef
-
 define HOST_ZIC_BUILD_CMDS
        $(HOST_MAKE_ENV) $(MAKE) -C $(@D) zic
 endef