Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 54 lines (44 sloc) 1.39 KB
#!/usr/bin/env beesh
# BEE_VERSION tzdata-2018c-1
# homepage https://www.iana.org/time-zones/
#SRCURL[0]="https://www.iana.org/time-zones/repository/releases/tzdata${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/c412b1531adef1be7a645ab734f86acc/tzdata2018c.tar.gz"
# PATCHURL[0]=""
MYTIMEZONE="Europe/Berlin"
BEE_EXTRACT_STRIP=0
build_in_sourcedir
mee_build() {
mkdir -p zoneinfo/{posix,right}
for tz in etcetera \
southamerica \
northamerica \
europe \
africa \
antarctica \
asia \
australasia \
backward \
pacificnew \
systemv ; do
zic -L /dev/null \
-d zoneinfo \
-y "/bin/bash ${S}/yearistype.sh" \
${S}/${tz}
zic -L /dev/null \
-d zoneinfo/posix \
-y "/bin/bash ${S}/yearistype.sh" \
${S}/${tz}
zic -L ${S}/leapseconds \
-d zoneinfo/right \
-y "/bin/bash ${S}/yearistype.sh" \
${S}/${tz}
done
}
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}
ln -s ${DATADIR}/zoneinfo/${MYTIMEZONE} ${D}${SYSCONFDIR}/localtime
}