aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/tzdata/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/extra/tzdata/abuild
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/extra/tzdata/abuild')
-rw-r--r--repos/extra/tzdata/abuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repos/extra/tzdata/abuild b/repos/extra/tzdata/abuild
new file mode 100644
index 00000000..0be330f5
--- /dev/null
+++ b/repos/extra/tzdata/abuild
@@ -0,0 +1,26 @@
+name=tzdata
+version=2024a
+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
+
+ rm $PKG/etc/localtime
+}