kumquat-buildroot/package/zic/zic.mk
Gustavo Zacarias 6e01ba1dc2 tzdata/zic: bump to version 2013c and switch SITE
Bump to version 2013c and switch to the FTP site since the HTTP one is
unfortunately serving .tar.gz files that are just plain tar files
(uncompressed).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-29 21:04:34 +02:00

30 lines
737 B
Makefile

################################################################################
#
# zic
#
################################################################################
ZIC_VERSION = 2013c
ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
ZIC_SITE = ftp://ftp.iana.org/tz/releases
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
define HOST_ZIC_INSTALL_CMDS
mkdir -p $(HOST_DIR)/usr/sbin
install -D -m 755 $(@D)/zic $(HOST_DIR)/usr/sbin/zic
endef
$(eval $(host-generic-package))
ZIC = $(HOST_DIR)/usr/sbin/zic