[arch-commits] Commit in tzdata/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Andreas Radke
andyrtr at archlinux.org
Thu Sep 12 05:17:11 UTC 2019
Date: Thursday, September 12, 2019 @ 05:17:11
Author: andyrtr
Revision: 362283
archrelease: copy trunk to testing-x86_64
Added:
tzdata/repos/testing-x86_64/
tzdata/repos/testing-x86_64/PKGBUILD
(from rev 362282, tzdata/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: tzdata/repos/testing-x86_64/PKGBUILD (from rev 362282, tzdata/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-09-12 05:17:11 UTC (rev 362283)
@@ -0,0 +1,50 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=tzdata
+pkgver=2019c
+_tzcode=2019c
+_tzdata=2019c
+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})
+# new signing key is not available via public keyservers
+sha512sums=('61ef36385f501c338c263081486de0d1fccd454b86f8777b0dbad4ea3f21bbde059d0a91c23e207b167ed013127d3db8b7528f0188814a8b44d1f946b19d9b8b'
+ 'SKIP'
+ '2921cbb2fd44a6b8f7f2ed42c13fbae28195aa5c2eeefa70396bc97cdbaad679c6cc3c143da82cca5b0279065c02389e9af536904288c12886bf345baa8c6565'
+ 'SKIP')
+validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert at cs.ucla.edu>
+
+timezones=('africa' 'antarctica' 'asia' 'australasia'
+ 'europe' 'northamerica' 'southamerica'
+ 'pacificnew' 'etcetera' 'backward'
+ 'systemv' 'factory')
+
+prepare() {
+ sed -i "s:sbin:bin:g" Makefile
+}
+
+build() {
+ make
+}
+
+package() {
+ cd ${srcdir}
+ # install tzcode stuff
+ make DESTDIR="${pkgdir}" install
+
+ # install tzdata stuff
+ ./zic -d ${pkgdir}/usr/share/zoneinfo ${timezones[@]}
+ ./zic -d ${pkgdir}/usr/share/zoneinfo/posix ${timezones[@]}
+ ./zic -d ${pkgdir}/usr/share/zoneinfo/right -L leapseconds ${timezones[@]}
+
+ ./zic -d ${pkgdir}/usr/share/zoneinfo -p America/New_York
+ install -m444 -t ${pkgdir}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab # zone.tab is depricated and will go soon
+
+ # cleanup
+ rm "${pkgdir}/etc/localtime"
+}
More information about the arch-commits
mailing list