47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
name='tzdata'
|
|
release='2'
|
|
version='2025b'
|
|
url='https://www.iana.org/time-zones'
|
|
description='Timezone data'
|
|
email='parduscix@yandex.ru'
|
|
maintainer='sulincix'
|
|
license=('Public-Domain')
|
|
source=("https://www.iana.org/time-zones/repository/releases/tzcode$version.tar.gz"
|
|
"https://www.iana.org/time-zones/repository/releases/tzdata$version.tar.gz"
|
|
"tzdata.sysconf")
|
|
depends=()
|
|
makedepends=()
|
|
sha256sums=('05f8fedb3525ee70d49c87d3fae78a8a0dbae4fe87aa565c65cda9948ae135ec'
|
|
'11810413345fc7805017e27ea9fa4885fd74cd61b2911711ad038f5d28d71474'
|
|
'SKIP')
|
|
group=(dev.libs)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
build () {
|
|
make $jobs
|
|
}
|
|
|
|
|
|
# Thx alpine linux
|
|
_timezones="africa antarctica asia australasia europe northamerica \
|
|
southamerica etcetera backward factory"
|
|
package() {
|
|
./zic -b fat -y ./yearistype -d "$DESTDIR"/usr/share/zoneinfo $_timezones
|
|
./zic -b fat -y ./yearistype -d "$DESTDIR"/usr/share/zoneinfo/right -L leapseconds $_timezones
|
|
./zic -b fat -y ./yearistype -d "$DESTDIR"/usr/share/zoneinfo/posix $_timezones
|
|
|
|
./zic -b fat -y ./yearistype -d "$DESTDIR"/usr/share/zoneinfo -p America/New_York
|
|
install -m444 -t "$DESTDIR"/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab
|
|
|
|
install -Dm755 -t "$DESTDIR"/usr/sbin zic zdump
|
|
|
|
install -Dm644 -t "$DESTDIR"/usr/share/man/man8 zic.8 zdump.8
|
|
|
|
install -Dm644 -t "$DESTDIR"/usr/share/zoneinfo ./leap-seconds.list
|
|
|
|
mkdir -p "$DESTDIR"/etc/sysconf.d/
|
|
install tzdata.sysconf "$DESTDIR"/etc/sysconf.d/tzdata
|
|
}
|