mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:57:16 +08:00
tzdata 2015d
This commit is contained in:
parent
9824f06ffe
commit
7c848ebaef
@ -1,34 +1,27 @@
|
|||||||
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||||
|
|
||||||
pkgname=tzdata
|
pkgname=tzdata
|
||||||
pkgver=2014g
|
pkgver=2015d
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Sources for time zone and daylight saving time data"
|
pkgdesc="Sources for time zone and daylight saving time data"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://www.iana.org/time-zones"
|
url="http://www.iana.org/time-zones"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
source=(http://www.iana.org/time-zones/repository/releases/${pkgname}${pkgver}.tar.gz
|
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'
|
timezones=('africa' 'antarctica' 'asia' 'australasia'
|
||||||
'europe' 'northamerica' 'southamerica'
|
'europe' 'northamerica' 'southamerica'
|
||||||
'pacificnew' 'etcetera' 'backward'
|
'pacificnew' 'etcetera' 'backward'
|
||||||
'systemv' 'factory')
|
'systemv' 'factory')
|
||||||
md5sums=('f9f59425e55b21d2e52bb3a95fc17b8d'
|
md5sums=('b595bdc4474b8fc1a15cffc67c66025b')
|
||||||
'f154679d48b724fe191efc19b55abd24')
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo ${timezones[@]}
|
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/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/right -L leapseconds ${timezones[@]}
|
||||||
|
|
||||||
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo -p America/New_York
|
zic -y ./yearistype -d ${pkgdir}/usr/share/zoneinfo -p America/New_York
|
||||||
install -m444 -t ${pkgdir}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab # zone.tab is depricated and will go soon
|
install -m444 -t ${pkgdir}/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab # zone.tab is depricated and will go soon
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user