Magellan Linux

Annotation of /smage/trunk/core/tzdata/tzdata-2020b-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15635 - (hide annotations) (download)
Thu Oct 8 10:48:22 2020 UTC (3 years, 7 months ago) by niro
File size: 1975 byte(s)
auto added: ver bump to 2020b-r1
1 niro 15634 # $Id$
2    
3     PNAME="tzdata"
4     PVER="2020b"
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 niro 15635 # upstream says tar.gz, but in reality it's only a tar
35 niro 15634 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 niro 15635 southamerica )
54 niro 15634
55 niro 15635 zic -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
56     zic -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
57     zic -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
58     zic -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
59 niro 15634 minstallfile iso3166.tab /usr/share/zoneinfo/ || die
60     minstallfile zone.tab /usr/share/zoneinfo/ || die
61     mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
62     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
63    
64     # alx only: split zone.tab and keep only the zonedata we need
65     # zone.tab
66     mv ${BINDIR}/usr/share/zoneinfo/zone.tab{,.full} || die
67     grep "Europe/Berlin" ${BINDIR}/usr/share/zoneinfo/zone.tab.full > ${BINDIR}/usr/share/zoneinfo/zone.tab || die
68     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
69     # iso3166.tab
70     mv ${BINDIR}/usr/share/zoneinfo/iso3166.tab{,.full} || die
71     grep "Germany" ${BINDIR}/usr/share/zoneinfo/iso3166.tab.full > ${BINDIR}/usr/share/zoneinfo/iso3166.tab || die
72     mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
73     }