mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-20 23:44:35 +00:00
30 lines
886 B
Plaintext
Executable File
30 lines
886 B
Plaintext
Executable File
# description : Sources for time zone and daylight saving time data
|
|
|
|
name=tzdata
|
|
version=2023d
|
|
release=1
|
|
source="https://www.iana.org/time-zones/repository/releases/${name}${version}.tar.gz
|
|
https://www.iana.org/time-zones/repository/releases/tzcode${version}.tar.gz"
|
|
|
|
build() {
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
ZONEINFO=$PKG/usr/share/zoneinfo
|
|
mkdir -pv $ZONEINFO/posix \
|
|
$ZONEINFO/right
|
|
|
|
for tz in etcetera southamerica northamerica europe africa antarctica \
|
|
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
|
|
|
|
# conflict with glibc
|
|
rm $PKG/etc/localtime
|
|
}
|