1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/tzdata/tzdata.conf
3 # Copyright (C) 2013 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License. A copy of the
11 # GNU General Public License can be found in the file COPYING.
12 # --- T2-COPYRIGHT-NOTE-END ---
18 custextract='tzcode_extract'
19 hook_add prepatch 5 'tzdata_extract'
22 local taropt_orig="$taropt"
23 mkdir -p "${xsrctar%%.*}"
24 taropt="-C ${xsrctar%%.*} $taropt_orig"
25 autoextract_tar_bz2 "$@"
30 tar -v $taropt $( match_source_file -p tzdata )
34 TIMEZONES="africa antarctica asia australasia europe northamerica southamerica etcetera backward"
36 mkdir -p $root/usr/share/zoneinfo/{,posix,right}
37 zic -y ./yearistype -d $root/usr/share/zoneinfo -L /dev/null $TIMEZONES
38 zic -y ./yearistype -d $root/usr/share/zoneinfo/posix -L /dev/null $TIMEZONES
39 zic -y ./yearistype -d $root/usr/share/zoneinfo/right -L leapseconds $TIMEZONES
40 zic -y ./yearistype -d $root/usr/share/zoneinfo -L/dev/null -p America/New_York
41 install -p -m 644 zone.tab iso3166.tab $root/usr/share/zoneinfo/
43 hook_add inmake 5 tzdata_install