Contents of /smage/trunk/core/tzdata/tzdata-2013i-r2.smage2
Parent Directory | Revision Log
Revision 5391 -
(show annotations)
(download)
Wed Jan 15 16:19:44 2014 UTC (10 years, 8 months ago) by niro
File size: 1549 byte(s)
Wed Jan 15 16:19:44 2014 UTC (10 years, 8 months ago) by niro
File size: 1549 byte(s)
-alx split
1 | # $Id$ |
2 | |
3 | PNAME="tzdata" |
4 | PVER="2013i" |
5 | PBUILD="r2" |
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 | ALX_PKG_KEEP="usr/share/zoneinfo/iso3166.tab |
19 | usr/share/zoneinfo/zone.tab |
20 | usr/share/zoneinfo/Europe/Berlin" |
21 | sminclude mtools alx-split |
22 | |
23 | SRC_URI=( |
24 | http://www.iana.org/time-zones/repository/releases/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2SEPERATOR="a" |
29 | UP2DATE="updatecmd ${HOMEPAGE} | grep ${PNAME} | lasttarball gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | # upstream says tar.gz, but really it's only a tar |
34 | install -d ${SRCDIR} || die |
35 | tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${SRCDIR} || die |
36 | chmod +x ${SRCDIR}/yearistype.sh || die |
37 | } |
38 | |
39 | alx_generic_src_install() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | local zones |
44 | zones=( africa |
45 | antarctica |
46 | asia |
47 | australasia |
48 | backward |
49 | etcetera |
50 | europe |
51 | factory |
52 | northamerica |
53 | pacificnew |
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 | } |