tzutils: update to 2022g.

This commit is contained in:
Đoàn Trần Công Danh 2022-11-30 08:26:12 +07:00
parent 2ba91ad168
commit 4a9e87f3c1
1 changed files with 3 additions and 14 deletions

View File

@ -1,30 +1,19 @@
# Template file for 'tzutils'
pkgname=tzutils
version=2022f
revision=2
version=2022g
revision=1
bootstrap=yes
short_desc="Time zone and daylight-saving time utilities"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="Public Domain"
homepage="https://www.iana.org/time-zones"
distfiles="https://www.iana.org/time-zones/repository/releases/tzdb-${version}.tar.lz"
checksum=180343dda8b24e000d8f718ab5871efa2ec0ed7725ba9a4267b8bd36af155bc2
checksum=579013083a7b0fd8d71b02a69f062fa96c7b34b6a96646293f60ba9e1105bd2b
if [ "$CROSS_BUILD" ]; then
hostmakedepends="tzutils"
fi
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
# enforce 64-bit time_t for Y2038
CFLAGS="-Dtime_tz=int64_t"
license+=", BSD-3-Clause"
fi
# https://mm.icann.org/pipermail/tz/2022-October/032154.html
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CFLAGS+=" -DTM_ZONE=tm_zone -DTM_GMTOFF=tm_gmtoff"
fi
do_build() {
touch version
make ${makejobs} KSHELL=/bin/sh \