core/tzdata/PKGBUILD
2016-04-20 00:32:28 +01:00

26 lines
974 B
Bash

pkgname=tzdata
pkgver=2016d
pkgrel=1
pkgdesc="Sources for time zone and daylight saving time data"
arch=('x86_64')
url="http://www.iana.org/time-zones"
license=('GPL')
options=('!emptydirs')
source=(http://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz)
timezones=('africa' 'antarctica' 'asia' 'australasia'
'europe' 'northamerica' 'southamerica'
'pacificnew' 'etcetera' 'backward'
'systemv' 'factory')
md5sums=('14bf84b6c2cdab0a9428991e0150ebe6')
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[@]}
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
}