Magellan Linux

Annotation of /trunk/core/tzdata/tzdata-2023c-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33324 - (hide annotations) (download)
Tue Jul 11 12:09:33 2023 UTC (10 months, 2 weeks ago) by niro
File size: 1418 byte(s)
-ver bump to 2023c
1 niro 33324 # $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     sminclude mtools
19    
20     SRC_URI=(
21     http://www.iana.org/time-zones/repository/releases/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2SEPERATOR="ta"
26     UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | highesttarball gz"
27    
28     src_prepare()
29     {
30     # upstream says tar.gz, but really it's only a tar
31     install -d ${SRCDIR} || die
32     tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${SRCDIR} || die
33     }
34    
35     src_install()
36     {
37     cd ${SRCDIR}
38    
39     local zones
40     zones=( africa
41     antarctica
42     asia
43     australasia
44     backward
45     etcetera
46     europe
47     factory
48     northamerica
49     southamerica )
50    
51     zic -b fat -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
52     zic -b fat -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
53     zic -b fat -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
54     zic -b fat -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
55     minstallfile iso3166.tab /usr/share/zoneinfo/ || die
56     minstallfile zone1970.tab /usr/share/zoneinfo/ || die
57     minstallfile zone.tab /usr/share/zoneinfo/ || die
58     mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
59     mchmod 0444 /usr/share/zoneinfo/zone1970.tab || die
60     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
61     }