From 40a841bdac0f82b100d045c2c4aee0568d5184cc Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 15 Jun 2020 01:25:10 +0000
Subject: tzdata: update to 2020a

---
 abs/core/tzdata/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++--------------
 1 file changed, 35 insertions(+), 14 deletions(-)

diff --git a/abs/core/tzdata/PKGBUILD b/abs/core/tzdata/PKGBUILD
index 0606eaf..961dc8f 100644
--- a/abs/core/tzdata/PKGBUILD
+++ b/abs/core/tzdata/PKGBUILD
@@ -1,17 +1,20 @@
-# $Id$
 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
 
 pkgname=tzdata
-pkgver=2017a
+pkgver=2020a
+_tzcode=2020a
+_tzdata=2020a
 pkgrel=1
 pkgdesc="Sources for time zone and daylight saving time data"
-arch=('any')
-url="http://www.iana.org/time-zones"
-license=('GPL')
+arch=('x86_64')
+url="https://www.iana.org/time-zones"
+license=('custom: public domain')
 options=('!emptydirs')
-# new signing key is not available via public keyservers
-source=(https://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz{,.asc})
-sha512sums=('fe57930711998a0755749a2bf1b32fdbc9e6ee249762017beea52eae7e521236396300fe2d79298fd81eb6d73fb7567884c35995ed248be06188329d937e3873'
+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=('5235d6590e844491df32375857f5f36ba0046f2d21a078375188dff79b125cf9b69136a0a431624de1ecfa9d53b62a232f0e6ee0b734294cec62b670e6265cb2'
+            'SKIP'
+            '2a2fc2e3ad8a6e4c574242296c847ad582c2c1d86add9c556e65c812d19b9528522e3c4dddb5239017091825d2acc5a2ccaf21dc41b900b6c300ef4264cc5a9d'
             'SKIP')
 validpgpkeys=('7E3792A9D8ACF7D633BC1588ED97E90E62AA7E34') # Paul Eggert <eggert@cs.ucla.edu>
 
@@ -20,12 +23,30 @@ timezones=('africa' 'antarctica' 'asia' 'australasia'
            'pacificnew' 'etcetera' 'backward'
            'systemv' 'factory')
 
+prepare() {
+  sed -i "s:sbin:bin:g" Makefile
+}
+
+build() {
+  make LFLAGS=${LDFLAGS}
+}
+
 package() {
-  cd ${srcdir}
-  zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo ${timezones[@]}
-  zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo/posix ${timezones[@]}
-  zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo/right -L leapseconds ${timezones[@]}
+  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
   
-  zic -y ./yearistype -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"
+
+  # install license
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
-- 
cgit v0.12

