Contents of /smage/branches/alx08x-unstable/core/tzdata/tzdata-2023c-r1.smage2
Parent Directory | Revision Log
Revision 16463 -
(show annotations)
(download)
Mon Oct 2 13:43:46 2023 UTC (11 months, 3 weeks ago) by niro
File size: 2111 byte(s)
Mon Oct 2 13:43:46 2023 UTC (11 months, 3 weeks ago) by niro
File size: 2111 byte(s)
-release branches/alx08x-unstable
1 | # $Id$ |
2 | |
3 | PNAME="tzdata" |
4 | PVER="2023c" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-libs" |
8 | |
9 | DESCRIPTION="Timezone and daylight saving time data." |
10 | HOMEPAGE="http://www.iana.org/time-zones/" |
11 | |
12 | DEPEND="" |
13 | SDEPEND=">= virtual/glibc" |
14 | |
15 | SRCFILE="${PNAME}${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_PKG_KEEP="usr/share/zoneinfo/iso3166.tab |
19 | usr/share/zoneinfo/zone.tab |
20 | usr/share/zoneinfo/Europe/Berlin |
21 | usr/share/zoneinfo/UTC" |
22 | sminclude mtools alx-split |
23 | |
24 | SRC_URI=( |
25 | http://www.iana.org/time-zones/repository/releases/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | ) |
28 | |
29 | UP2SEPERATOR="ta" |
30 | UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | highesttarball gz" |
31 | |
32 | src_prepare() |
33 | { |
34 | # upstream says tar.gz, but in reality it's only a tar |
35 | install -d ${SRCDIR} || die |
36 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${SRCDIR} || die |
37 | } |
38 | |
39 | alx_generic_src_install() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | local zones |
44 | zones=( africa |
45 | antarctica |
46 | asia |
47 | australasia |
48 | backward |
49 | etcetera |
50 | europe |
51 | factory |
52 | northamerica |
53 | southamerica ) |
54 | |
55 | zic -b fat -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die |
56 | zic -b fat -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die |
57 | zic -b fat -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die |
58 | zic -b fat -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die |
59 | minstallfile iso3166.tab /usr/share/zoneinfo/ || die |
60 | minstallfile zone1970.tab /usr/share/zoneinfo/ || die |
61 | minstallfile zone.tab /usr/share/zoneinfo/ || die |
62 | mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die |
63 | mchmod 0444 /usr/share/zoneinfo/zone1970.tab || die |
64 | mchmod 0444 /usr/share/zoneinfo/zone.tab || die |
65 | |
66 | # alx only: split zone.tab and keep only the zonedata we need |
67 | # zone.tab |
68 | mv ${BINDIR}/usr/share/zoneinfo/zone.tab{,.full} || die |
69 | grep "Europe/Berlin" ${BINDIR}/usr/share/zoneinfo/zone.tab.full > ${BINDIR}/usr/share/zoneinfo/zone.tab || die |
70 | mchmod 0444 /usr/share/zoneinfo/zone.tab || die |
71 | # iso3166.tab |
72 | mv ${BINDIR}/usr/share/zoneinfo/iso3166.tab{,.full} || die |
73 | grep "Germany" ${BINDIR}/usr/share/zoneinfo/iso3166.tab.full > ${BINDIR}/usr/share/zoneinfo/iso3166.tab || die |
74 | mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die |
75 | } |