Skip to content

Commit

Permalink
tzdata
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 19, 2024
1 parent 240fe7f commit 30a20ce
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions dev/libs/tzdata/ympbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
name='tzdata'
release='1'
version='2024a'
url='https://example.org'
description='Package description missing'
email='parduscix@yandex.ru'
maintainer='sulincix'
license=('GPLv3')
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"
"https://dev.alpinelinux.org/archive/posixtz/posixtz-0.5.tar.xz")
depends=()
makedepends=()
sha256sums=('80072894adff5a458f1d143e16e4ca1d8b2a122c9c5399da482cb68cba6a1ff8'
'0d0434459acbd2059a7a8da1f3304a84a86591f6ed69c6248fffa502b6edffe3'
'e0a79e0922be2da686a1888d79cd253baaf81c2f30b4378fbbcf9ff9d632aab5')
group=(dev.libs)
uses=()
arch=('x86_64')

build () {
make $jobs
cd posixtz-0.5
make posixtz $jobs
}

_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

rm -f "$DESTDIR"/usr/share/zoneinfo/localtime
install -Dm755 -t "$DESTDIR"/usr/bin ./posixtz-0.5/posixtz

install -Dm644 -t "$DESTDIR"/usr/share/zoneinfo ./leap-seconds.list
}

0 comments on commit 30a20ce

Please sign in to comment.