Annotation of /smage/trunk/core/tzdata/tzdata-2015g-r1.smage2
Parent Directory | Revision Log
Revision 7759 -
(hide annotations)
(download)
Thu Nov 12 09:58:52 2015 UTC (8 years, 10 months ago) by niro
File size: 1549 byte(s)
Thu Nov 12 09:58:52 2015 UTC (8 years, 10 months ago) by niro
File size: 1549 byte(s)
auto added: ver bump to 2015g-r1
1 | niro | 7759 | # $Id$ |
2 | |||
3 | PNAME="tzdata" | ||
4 | PVER="2015g" | ||
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 | 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 | } |