Skip to content

Update tzdata (time zone database) from 2014f to 2018c #675

Merged
merged 8 commits into from
Mar 16, 2018
17 changes: 11 additions & 6 deletions tzdata-2014f-1.bee → tzdata.be0
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env beesh

# homepage http://www.iana.org/time-zones/
SRCURL[0]="http://www.iana.org/time-zones/repository/releases/tzdata${PKGVERSION}.tar.gz"
# BEE_VERSION tzdata-2018c-0

# homepage https://www.iana.org/time-zones/
SRCURL[0]="https://www.iana.org/time-zones/repository/releases/tzdata${PKGVERSION}.tar.gz"

PATCHURL[0]=""

Expand All @@ -12,7 +14,7 @@ BEE_EXTRACT_STRIP=0
build_in_sourcedir

mee_build() {
mkdir -p zoneinfo/{posix/right}
mkdir -p zoneinfo/{posix,right}
for tz in etcetera \
southamerica \
northamerica \
Expand All @@ -23,7 +25,7 @@ mee_build() {
australasia \
backward \
pacificnew \
systemv ; do
systemv ; do
zic -L /dev/null \
-d zoneinfo \
-y "/bin/bash ${S}/yearistype.sh" \
Expand All @@ -42,7 +44,10 @@ mee_build() {
mee_install() {
mkdir -pv ${D}/${DATADIR}
cp -vax zoneinfo ${D}/${DATADIR}

cp -v zone.tab zone1970.tab iso3166.tab ${D}/${DATADIR}/zoneinfo

zic -d ${D}/${DATADIR}/zoneinfo -p America/New_York

mkdir -pv ${D}${SYSCONFDIR}
cp ${D}${DATADIR}/zoneinfo/${MYTIMEZONE} ${D}${SYSCONFDIR}/localtime
ln -s ${D}${DATADIR}/zoneinfo/${MYTIMEZONE} ${D}${SYSCONFDIR}/localtime
}