2012-04-20 06:21:08 +08:00
|
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
pkgname=tzdata
|
2014-07-23 06:25:34 +08:00
|
|
|
pkgver=2014e
|
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"
|
2012-04-20 06:21:08 +08:00
|
|
|
arch=('any')
|
|
|
|
url="http://www.iana.org/time-zones"
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL')
|
|
|
|
options=('!emptydirs')
|
2013-09-26 07:03:30 +08:00
|
|
|
source=(http://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz
|
|
|
|
# tzcodes is required for leapseconds.awk file that is not yet part of tzdata
|
|
|
|
http://www.iana.org/time-zones/repository/releases/tzcode${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')
|
|
|
|
md5sums=('8a49fdedd4e832da8e85f7f9bcaedc33'
|
|
|
|
'552251600ee3571c244d33c7196ec2ed')
|
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[@]}
|
2013-09-26 07:03:30 +08:00
|
|
|
|
|
|
|
# generate leapseconds file
|
|
|
|
awk -f leapseconds.awk leap-seconds.list > leapseconds && echo "leapseconds file generated"
|
2012-04-20 06:21:08 +08:00
|
|
|
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
|
|
|
|
install -m444 -t ${pkgdir}/usr/share/zoneinfo iso3166.tab zone.tab
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|
2013-09-26 07:03:30 +08:00
|
|
|
|