aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/tzdata
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/tzdata')
-rw-r--r--repos/extra/tzdata/abuild26
-rw-r--r--repos/extra/tzdata/build18
-rw-r--r--repos/extra/tzdata/info5
3 files changed, 26 insertions, 23 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
+}
diff --git a/repos/extra/tzdata/build b/repos/extra/tzdata/build
deleted file mode 100644
index cbd90326..00000000
--- a/repos/extra/tzdata/build
+++ /dev/null
@@ -1,18 +0,0 @@
-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
diff --git a/repos/extra/tzdata/info b/repos/extra/tzdata/info
deleted file mode 100644
index def597ed..00000000
--- a/repos/extra/tzdata/info
+++ /dev/null
@@ -1,5 +0,0 @@
-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"