eth0s/ports/core/tzdata/Pkgfile

25 lines
856 B
Text
Raw Normal View History

# Description: Sources for time zone and daylight saving time data
# URL:
2019-11-10 23:58:56 +08:00
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
# Depends on:
name=tzdata
2022-04-09 08:19:46 +08:00
version=2022a
release=1
source=(https://www.iana.org/time-zones/repository/releases/${name}${version}.tar.gz)
build() {
ZONEINFO=$PKG/usr/share/zoneinfo
mkdir -pv $ZONEINFO/{posix,right}
for tz in etcetera southamerica northamerica europe africa antarctica \
2020-11-13 13:58:01 +08:00
asia australasia backward; do
zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
done
cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
zic -d $ZONEINFO -p America/New_York
}