db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / tzdata / trunk / PKGBUILD
bloba5f043960b5684c6fd82ce2670e7df720bf01ae5
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=tzdata
4 pkgver=2023c
5 _tzcode=2023c
6 _tzdata=2023c
7 pkgrel=1
8 pkgdesc="Sources for time zone and daylight saving time data"
9 arch=('x86_64')
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'
18             'SKIP'
19             '608bd286ebcbd0004cfdc1da183273f08aff61f90c8867661154453d77a05d421e4c46ad6d066a1fe2e87d5c82ec0f1c0224667a3b35f3180a3eb7f6ff84cbf5'
20             'SKIP')
21 validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
23 _timezones=('africa' 'antarctica' 'asia' 'australasia'
24            'europe' 'northamerica' 'southamerica'
25            'etcetera' 'backward' 'factory')
27 prepare() {
28   sed -i "s:sbin:bin:g" Makefile
31 build() {
32   make LFLAGS="${LDFLAGS} ${LTOFLAGS}"
35 package() {
36   cd "${srcdir}"
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
47   
48   # cleanup
49   rm "${pkgdir}/etc/localtime"
51   # install license
52   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE