# Template file for 'tzdata'
pkgname=tzdata
version=2019c
revision=1
archs=noarch
wrksrc=tzdata
create_wrksrc=yes
hostmakedepends="tzutils"
short_desc="Time zone and daylight-saving time data"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Public Domain"
homepage="http://www.iana.org/time-zones"
distfiles="http://www.iana.org/time-zones/repository/releases/tzdata${version}.tar.gz"
checksum=79c7806dab09072308da0e3d22c37d3b245015a591891ea147d3b133b60ffc7c

do_install() {
	local timezones="africa antarctica asia australasia europe northamerica \
		southamerica pacificnew etcetera backward systemv factory"

	zic -y ./yearistype -d ${DESTDIR}/usr/share/zoneinfo ${timezones}
	zic -y ./yearistype -d ${DESTDIR}/usr/share/zoneinfo/posix ${timezones}
	zic -y ./yearistype -d ${DESTDIR}/usr/share/zoneinfo/right -L leapseconds ${timezones}

	zic -y ./yearistype -d ${DESTDIR}/usr/share/zoneinfo -p America/New_York
	install -m444 -t ${DESTDIR}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab
}
