3.4. tzdata-2022c
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License. MY_P="${PN}${PV}"
Source download
Sources for tzdata are not inside directory tzdata-version, as it would normally be for all other packages.
To handle this we need to change the standard procedure for handling the remote sources. It's called src_fetch.
src_fetch() { mkdir -p ${S} cd ${S} tar xf ${ANYSRCDIR}/${MY_P}.tar.gz -C ${S} }
Configuration
src_config() { return }
Compilation
src_compile() { return }
Installation
src_install() { ZONEINFO=${D}/usr/share/zoneinfo mkdir -p ${ZONEINFO}/posix/ ${ZONEINFO}/right/ 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} zic -L leapseconds -d ${ZONEINFO}/right ${tz} done cp zone.tab zone1970.tab iso3166.tab ${ZONEINFO} zic -d ${ZONEINFO} -p America/New_York }
Build code
Other files
Links