core/tzdata/PKGBUILD
2012-04-19 22:21:08 +00:00

32 lines
1.1 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=tzdata
pkgver=2012c
pkgrel=1
pkgdesc="Sources for time zone and daylight saving time data"
arch=('any')
url="http://www.iana.org/time-zones"
license=('GPL')
options=('!emptydirs')
source=(#http://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz
ftp://munnari.oz.au/pub/${pkgname}${pkgver}.tar.gz)
sha1sums=('e0cd9c2cc0ac8d90ed842133b910d4bb3bc1a6dd')
timezones=('africa' 'antarctica' 'asia' 'australasia'
'europe' 'northamerica' 'southamerica'
'pacificnew' 'etcetera' 'backward'
'systemv' 'factory'
'solar87' 'solar88' 'solar89')
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 zone.tab
}