Update package version to 2025b
This commit is contained in:
@@ -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"
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ 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}
|
||||||
@@ -25,5 +26,6 @@ package() {
|
|||||||
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user