tzdump: new host package

tzdump takes timezone info in the installed tzdata format, and
outputs timezone info parseable by uClibc.

[Peter: adjust host-zip dep, simplify build/install, use INSTALL variable]
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
[yann.morin.1998@free.fr: split zic header-install to its own cset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Alexandre Belloni 2014-04-07 21:58:06 +02:00 committed by Peter Korsgaard
parent 56af487917
commit 75622c75fa

21
package/tzdump/tzdump.mk Normal file
View File

@ -0,0 +1,21 @@
################################################################################
#
# tzdump
#
################################################################################
TZDUMP_VERSION = 65a10105564801094b18c3fcacf4dde4c44e4ab8
TZDUMP_SITE = $(call github,alexandrebelloni,tzdump,$(TZDUMP_VERSION))
HOST_TZDUMP_DEPENDENCIES = host-zic
define HOST_TZDUMP_BUILD_CMDS
cd $(@D) && $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o tzdump tzdump.c
endef
define HOST_TZDUMP_INSTALL_CMDS
$(INSTALL) -m 0755 -D $(@D)/tzdump $(HOST_DIR)/usr/sbin/tzdump
endef
$(eval $(host-generic-package))
TZDUMP = $(HOST_DIR)/usr/sbin/tzdump