Magellan Linux

Annotation of /trunk/core/tzdata/tzdata-2018e-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30939 - (hide annotations) (download)
Wed May 16 14:42:05 2018 UTC (5 years, 11 months ago) by niro
File size: 1530 byte(s)
auto added: ver bump to 2018e-r1
1 niro 30939 # $Id$
2    
3     PNAME="tzdata"
4     PVER="2018e"
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     chmod +x ${SRCDIR}/yearistype.sh || die
34     }
35    
36     src_install()
37     {
38     cd ${SRCDIR}
39    
40     local zones
41     zones=( africa
42     antarctica
43     asia
44     australasia
45     backward
46     etcetera
47     europe
48     factory
49     northamerica
50     pacificnew
51     southamerica
52     systemv )
53    
54     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
55     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
56     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
57     zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
58     minstallfile iso3166.tab /usr/share/zoneinfo/ || die
59     minstallfile zone1970.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/zone1970.tab || die
63     mchmod 0444 /usr/share/zoneinfo/zone.tab || die
64     }