Magellan Linux

Contents of /branches/R11-stable/core/tzdata/tzdata-2013g-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19733 - (show annotations) (download)
Wed Oct 16 08:25:35 2013 UTC (10 years, 6 months ago) by niro
File size: 1448 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="tzdata"
4 PVER="2013g"
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="a"
26 UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | lasttarball 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 solar87
52 solar88
53 solar89
54 southamerica
55 systemv )
56
57 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo ${zones[*]} || die
58 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/posix ${zones[*]} || die
59 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo/right -L leapseconds ${zones[*]} || die
60 zic -y ./yearistype.sh -d ${BINDIR}/usr/share/zoneinfo -p America/New_York || die
61 minstallfile iso3166.tab /usr/share/zoneinfo/ || die
62 minstallfile zone.tab /usr/share/zoneinfo/ || die
63 mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
64 mchmod 0444 /usr/share/zoneinfo/zone.tab || die
65 }