| Name |
tzdata |
| Description |
Sources for time zone and daylight saving time data |
| Version |
2025c-1 |
| Package Base |
tzdata |
| Homepage |
https://www.iana.org/time-zones |
| Maintainers |
['Andreas Radke <andyrtr@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/tzdata |
| Sources |
['https://www.iana.org/time-zones/repository/releases/tzcode2025c.tar.gz', 'https://www.iana.org/time-zones/repository/releases/tzcode2025c.tar.gz.asc', 'https://www.iana.org/time-zones/repository/releases/tzdata2025c.tar.gz', 'https://www.iana.org/time-zones/repository/releases/tzdata2025c.tar.gz.asc'] |
| Dependencies |
[] |
| Optional-Dependencies |
['bash', 'glibc'] |
| Build-Dependencies |
[] |
| Provides |
[] |
| Builddate |
11-12-2025 07:08:31 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['LicenseRef-tz'] |
| Hash |
4b281d5fb0c556977b3a532e174386b3a56ef64620457b3b724189b5b5965b0e |
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=tzdata
pkgver=2025c
_tzcode=2025c
_tzdata=2025c
pkgrel=1
pkgdesc="Sources for time zone and daylight saving time data"
arch=('x86_64')
url="https://www.iana.org/time-zones"
license=('LicenseRef-tz')
optdepends=('bash: for tzselect'
'glibc: for zdump, zic')
options=('!emptydirs')
source=(https://www.iana.org/time-zones/repository/releases/tzcode${_tzcode}.tar.gz{,.asc}
https://www.iana.org/time-zones/repository/releases/${pkgname}${_tzdata}.tar.gz{,.asc})
sha512sums=('d14bc0680b9cb33d6526a2c0e483f2abafc2593cfe5fbfe7dcab940aafdc1baaec065dbaa1bb58b03586a8631ffdf43ebb22ff5a70503298b6ea2cf061d82c16'
'SKIP'
'1e33f7212fd0ae2ad3c16e68f0c1fc7a6ad26a126b8406c379a5768d79604c6a816054bd0fe3a63228d70cd6a1fc2b1bae2a9f8014e102d3727eb9d21affa1f1'
'SKIP')
validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
_timezones=('africa' 'antarctica' 'asia' 'australasia'
'europe' 'northamerica' 'southamerica'
'etcetera' 'backward' 'factory')
prepare() {
sed -i "s:sbin:bin:g" Makefile
}
build() {
make LFLAGS="${LDFLAGS} ${LTOFLAGS}"
}
package() {
cd "${srcdir}"
# install tzcode stuff
make DESTDIR="${pkgdir}" install
# install tzdata stuff
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo ${_timezones[@]}
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/posix ${_timezones[@]}
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo/right -L leapseconds ${_timezones[@]}
# This creates the posixrules file. We use New York because POSIX requires the daylight savings time rules to be in accordance with US rules.
./zic -b fat -d "${pkgdir}"/usr/share/zoneinfo -p America/New_York
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
# cleanup
rm "${pkgdir}/etc/localtime"
# install license
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}