Magellan Linux

Contents of /trunk/core/tzdata/tzdata-2018b-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30428 - (show annotations) (download)
Fri Jan 19 12:10:58 2018 UTC (6 years, 3 months ago) by niro
File size: 1517 byte(s)
auto added: ver bump to 2018b-r1
1 # $Id$
2
3 PNAME="tzdata"
4 PVER="2018b"
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 southamerica
51 systemv )
52
53 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
54 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
55 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
56 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
57 minstallfile iso3166.tab /usr/share/zoneinfo/ || die
58 minstallfile zone1970.tab /usr/share/zoneinfo/ || die
59 minstallfile zone.tab /usr/share/zoneinfo/ || die
60 mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
61 mchmod 0444 /usr/share/zoneinfo/zone1970.tab || die
62 mchmod 0444 /usr/share/zoneinfo/zone.tab || die
63 }