38 lines
747 B
Python
38 lines
747 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("2026.4.22")
|
|
description("code and data that represent the history of local time for many representative locations worldwide")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://data.iana.org/time-zones/releases/tzdb-2026b.tar.lz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_db(composer):
|
|
composer.makedir("share")
|
|
composer.add_dir("share/zoneinfo", "share/zoneinfo")
|
|
|
|
|
|
package("iana-timezone-db")
|
|
arch_any()
|
|
on_pack(pack_db)
|
|
|
|
package("iana-timezone-tools")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|
|
|
|
package("iana-timezone-dev")
|
|
cpp.use_auto_pack(["dev"])
|