Date: Saturday, October 29, 2022 @ 09:19:17
Author: andyrtr
Revision: 459421
archrelease: copy trunk to testing-x86_64
Added:
tzdata/repos/testing-x86_64/
tzdata/repos/testing-x86_64/PKGBUILD
(from rev 459420, tzdata/trunk/PKGBUILD)
tzdata/repos/testing-x86_64/keys/
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: tzdata/repos/testing-x86_64/PKGBUILD (from rev 459420,
tzdata/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-10-29 09:19:17 UTC (rev 459421)
@@ -0,0 +1,51 @@
+# Maintainer: Andreas Radke <[email protected]>
+
+pkgname=tzdata
+pkgver=2022f
+_tzcode=2022f
+_tzdata=2022f
+pkgrel=1
+pkgdesc="Sources for time zone and daylight saving time data"
+arch=('x86_64')
+url="https://www.iana.org/time-zones"
+license=('custom: public domain')
+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=('3e2ef91b972f1872e3e8da9eae9d1c4638bfdb32600f164484edd7147be45a116db80443cd5ae61b5c34f8b841e4362f4beefd957633f6cc9b7def543ed6752b'
+ 'SKIP'
+
'72d05d05be999075cdf57b896c0f4238b1b862d4d0ed92cc611736592a4ada14d47bd7f0fc8be39e7938a7f5940a903c8af41e87859482bcfab787d889d429f6'
+ 'SKIP')
+validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert
<[email protected]>
+
+_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
+}