summaryrefslogtreecommitdiff
path: root/packages/timezones
diff options
context:
space:
mode:
Diffstat (limited to 'packages/timezones')
-rw-r--r--packages/timezones/timezones_1.2.0.bb31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/timezones/timezones_1.2.0.bb b/packages/timezones/timezones_1.2.0.bb
index e69de29bb2..c9283b23db 100644
--- a/packages/timezones/timezones_1.2.0.bb
+++ b/packages/timezones/timezones_1.2.0.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Timezone data"
+SECTION = "base"
+PRIORITY = "optional"
+MAINTAINER = "Team Opie <opie@handhelds.org>"
+LICENSE = "GPL"
+PR = "r1"
+
+SRC_URI = "${HANDHELDS_CVS};tag=v1_2_0;module=opie/root"
+S = "${WORKDIR}/root"
+
+do_install() {
+ install -d ${D}${datadir}/
+ cp -fa usr/share/zoneinfo ${D}${datadir}/
+ find ${D}${datadir} -name "CVS"|xargs rm -rf
+}
+
+python populate_packages_prepend() {
+ pkgregex = "^(.*)"
+ pkgpattern = "timezones-%s"
+ pkgdescription = "Timezone for %s"
+
+ do_split_packages(d, root=bb.data.expand('${datadir}/zoneinfo/', d), file_regex=pkgregex, output_pattern=pkgpattern,
+ description=pkgdescription,allow_dirs=True )
+}
+
+FILES_${PN} = "${datadir}/zoneinfo/America/Denver \
+ ${datadir}/zoneinfo/America/New_York \
+ ${datadir}/zoneinfo/America/Los_Angeles \
+ ${datadir}/zoneinfo/Australia/Brisbane \
+ ${datadir}/zoneinfo/Europe/Berlin \
+ ${datadir}/zoneinfo/Asia/Tokyo "