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
|
||||
description: Timezone data
|
||||
version: 2024a
|
||||
version: 2025b
|
||||
url: https://www.iana.org/time-zones
|
||||
license: LicenseRef-tz
|
||||
architecture: any
|
||||
optional_depends: ["bash","glibc"]
|
||||
type: source
|
||||
|
||||
@@ -16,6 +16,7 @@ prepare() {
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
ZONEINFO="$BPM_OUTPUT"/usr/share/zoneinfo
|
||||
|
||||
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/posix ${tz}
|
||||
@@ -25,5 +26,6 @@ package() {
|
||||
cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
|
||||
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