Magellan Linux

Annotation of /smage/trunk/core/tzdata/tzdata-2019c-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13789 - (hide annotations) (download)
Wed Oct 30 20:12:40 2019 UTC (4 years, 6 months ago) by niro
File size: 2111 byte(s)
auto added: ver bump to 2019c-r1
1 niro 13789 # $Id$
2    
3     PNAME="tzdata"
4     PVER="2019c"
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 really it's only a tar
35     install -d ${SRCDIR} || die
36     tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${SRCDIR} || die
37     chmod +x ${SRCDIR}/yearistype.sh || die
38     }
39    
40     alx_generic_src_install()
41     {
42     cd ${SRCDIR}
43    
44     local zones
45     zones=( africa
46     antarctica
47     asia
48     australasia
49     backward
50     etcetera
51     europe
52     factory
53     northamerica
54     pacificnew
55     southamerica
56     systemv )
57    
58     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
59     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
60     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
61     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
62     minstallfile iso3166.tab /usr/share/zoneinfo/ || die
63     minstallfile zone.tab /usr/share/zoneinfo/ || die
64     mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
65     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
66    
67     # alx only: split zone.tab and keep only the zonedata we need
68     # zone.tab
69     mv ${BINDIR}/usr/share/zoneinfo/zone.tab{,.full} || die
70     grep "Europe/Berlin" ${BINDIR}/usr/share/zoneinfo/zone.tab.full > ${BINDIR}/usr/share/zoneinfo/zone.tab || die
71     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
72     # iso3166.tab
73     mv ${BINDIR}/usr/share/zoneinfo/iso3166.tab{,.full} || die
74     grep "Germany" ${BINDIR}/usr/share/zoneinfo/iso3166.tab.full > ${BINDIR}/usr/share/zoneinfo/iso3166.tab || die
75     mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
76     }