Update package version to 2025b

This commit is contained in:
2025-05-12 17:26:22 +03:00
parent 7c65271740
commit b9f4469bf8
3 changed files with 16 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Webpage URL
URL="https://data.iana.org/time-zones/releases/?C=M;O=D"
# Get version from URL
VERSION=$(curl -s -L "https://data.iana.org/time-zones/releases/?C=M;O=D" | grep -o -E 'tzdata([0-9]*)[a-z].tar.gz' | head -n1 | grep -o -E '([0-9]{4}[a-z])')
echo "$VERSION"
+2 -1
View File
@@ -1,7 +1,8 @@
name: tzdata name: tzdata
description: Timezone data description: Timezone data
version: 2024a version: 2025b
url: https://www.iana.org/time-zones url: https://www.iana.org/time-zones
license: LicenseRef-tz license: LicenseRef-tz
architecture: any architecture: any
optional_depends: ["bash","glibc"]
type: source type: source
+5 -3
View File
@@ -16,14 +16,16 @@ prepare() {
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
ZONEINFO="$BPM_OUTPUT"/usr/share/zoneinfo ZONEINFO="$BPM_OUTPUT"/usr/share/zoneinfo
for tz in etcetera southamerica northamerica europe africa antarctica asia australasia backward; do for tz in etcetera southamerica northamerica europe africa antarctica asia australasia backward; do
zic -L /dev/null -d $ZONEINFO ${tz} zic -L /dev/null -d $ZONEINFO ${tz}
zic -L /dev/null -d $ZONEINFO/posix ${tz} zic -L /dev/null -d $ZONEINFO/posix ${tz}
zic -L leapseconds -d $ZONEINFO/right ${tz} zic -L leapseconds -d $ZONEINFO/right ${tz}
done done
cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
zic -d $ZONEINFO -p America/New_York zic -d $ZONEINFO -p America/New_York
unset ZONEINFO # Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/tzdata/LICENSE
} }