2010-03-13 23:25:19 +08:00
|
|
|
pkgname=tzdata
|
2018-01-24 15:28:12 +08:00
|
|
|
pkgver=2018c
|
2012-04-20 06:21:08 +08:00
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Sources for time zone and daylight saving time data"
|
2015-12-14 06:12:51 +08:00
|
|
|
arch=('x86_64')
|
2012-04-20 06:21:08 +08:00
|
|
|
url="http://www.iana.org/time-zones"
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL')
|
|
|
|
options=('!emptydirs')
|
2015-05-26 06:14:37 +08:00
|
|
|
source=(http://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz)
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-04-20 06:21:08 +08:00
|
|
|
timezones=('africa' 'antarctica' 'asia' 'australasia'
|
|
|
|
'europe' 'northamerica' 'southamerica'
|
|
|
|
'pacificnew' 'etcetera' 'backward'
|
2014-07-23 06:25:34 +08:00
|
|
|
'systemv' 'factory')
|
2018-01-24 15:28:12 +08:00
|
|
|
md5sums=('c412b1531adef1be7a645ab734f86acc')
|
2011-04-17 06:29:38 +08:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}
|
2012-04-20 06:21:08 +08:00
|
|
|
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[@]}
|
2013-09-26 07:03:30 +08:00
|
|
|
|
2012-04-20 06:21:08 +08:00
|
|
|
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo -p America/New_York
|
2014-09-19 06:56:09 +08:00
|
|
|
install -m444 -t ${pkgdir}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab # zone.tab is depricated and will go soon
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|