kumquat-buildroot/package/zic/zic.mk
Alexandre Belloni 8dfd59d114 Normalize separator size to 80
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-06-06 22:30:24 +02:00

30 lines
757 B
Makefile

################################################################################
#
# zic
#
################################################################################
ZIC_VERSION = 2012j
ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz
ZIC_SITE = http://www.iana.org/time-zones/repository/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