Magellan Linux

Contents of /branches/R11-stable/core/tzdata/tzdata-2012j-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16363 - (show annotations) (download)
Fri Feb 1 20:52:22 2013 UTC (11 years, 4 months ago) by niro
File size: 1323 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="tzdata"
4 PVER="2012j"
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
14 SRCFILE="${PNAME}${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mtools
18
19 SRC_URI=(
20 http://www.iana.org/time-zones/repository/releases/tzdata2012j.tar.gz
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2SEPERATOR="a"
25 UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | lasttarball gz"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} ${SRCDIR} || die
30 chmod +x ${SRCDIR}/yearistype.sh || die
31 }
32
33 src_install()
34 {
35 cd ${SRCDIR}
36
37 local zones
38 zones=( africa
39 antarctica
40 asia
41 australasia
42 backward
43 etcetera
44 europe
45 factory
46 northamerica
47 pacificnew
48 solar87
49 solar88
50 solar89
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 zone.tab /usr/share/zoneinfo/ || die
60 mchmod 0444 /usr/share/zoneinfo/iso3166.tab || die
61 mchmod 0444 /usr/share/zoneinfo/zone.tab || die
62 }