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
|
2013-09-26 07:03:30 +08:00
|
|
|
pkgver=2013f
|
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'
|
|
|
|
'systemv' 'factory'
|
|
|
|
'solar87' 'solar88' 'solar89')
|
2013-09-26 07:03:30 +08:00
|
|
|
md5sums=('6d35470a6090e741c39aa9bc9cd103e3'
|
|
|
|
'0cca1a29a3734935e7dd44e86fa3bbd5')
|
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
|
|
|
|