mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 22:25:14 +08:00
28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=tzdata
|
|
pkgver=2013c
|
|
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)
|
|
sha1sums=('9233afc23b344171bd067247d7b7d0054719780b')
|
|
|
|
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
|
|
}
|