1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
8 pkgdesc="Sources for time zone and daylight saving time data"
10 url="https://www.iana.org/time-zones"
11 license=('custom: public domain')
12 optdepends=('bash: for tzselect'
13 'glibc: for zdump, zic')
14 options=('!emptydirs')
15 source=(https://www.iana.org/time-zones/repository/releases/tzcode${_tzcode}.tar.gz{,.asc}
16 https://www.iana.org/time-zones/repository/releases/${pkgname}${_tzdata}.tar.gz{,.asc})
17 sha512sums=('fa18bae9c0e7c061bc9d5f5f2eb9967f0e4ddb2baafdee9887fa30cd0c60f4aa6f21eacffb17df0d59d26ff54d08c5dcefa98159309eba497e86443624913a82'
19 '608bd286ebcbd0004cfdc1da183273f08aff61f90c8867661154453d77a05d421e4c46ad6d066a1fe2e87d5c82ec0f1c0224667a3b35f3180a3eb7f6ff84cbf5'
21 validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
23 _timezones=('africa' 'antarctica' 'asia' 'australasia'
24 'europe' 'northamerica' 'southamerica'
25 'etcetera' 'backward' 'factory')
28 sed -i "s:sbin:bin:g" Makefile
32 make LFLAGS="${LDFLAGS} ${LTOFLAGS}"
37 # install tzcode stuff
38 make DESTDIR="${pkgdir}" install
40 # install tzdata stuff
41 ./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo ${_timezones[@]}
42 ./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/posix ${_timezones[@]}
43 ./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/right -L leapseconds ${_timezones[@]}
44 # This creates the posixrules file. We use New York because POSIX requires the daylight savings time rules to be in accordance with US rules.
45 ./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo -p America/New_York
46 install -m644 -t "${pkgdir}"/usr/share/zoneinfo iso3166.tab leap-seconds.list zone1970.tab zone.tab SECURITY # zone.tab is depricated and will go soon
49 rm "${pkgdir}/etc/localtime"
52 install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE