mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 14:45:09 +08:00
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=tzdata
|
|
pkgver=2014e
|
|
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
|
|
# 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)
|
|
|
|
timezones=('africa' 'antarctica' 'asia' 'australasia'
|
|
'europe' 'northamerica' 'southamerica'
|
|
'pacificnew' 'etcetera' 'backward'
|
|
'systemv' 'factory')
|
|
md5sums=('8a49fdedd4e832da8e85f7f9bcaedc33'
|
|
'552251600ee3571c244d33c7196ec2ed')
|
|
|
|
package() {
|
|
cd ${srcdir}
|
|
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo ${timezones[@]}
|
|
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo/posix ${timezones[@]}
|
|
|
|
# generate leapseconds file
|
|
awk -f leapseconds.awk leap-seconds.list > leapseconds && echo "leapseconds file generated"
|
|
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
|
|
}
|
|
|