summaryrefslogtreecommitdiff
path: root/packages/openmoko-projects/om-maps.inc
blob: 36081bdcca018b21738091bc2501c32e081aabf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESCRIPTION = "Map of ${MAP_NAME}, for use with Locations application. \
               Data from OpenStreetMap.org, licenced CC-by-SA."
HOMEPAGE = "http://wiki.openmoko.org/wiki/Om_2008.8_Locations"
SECTION = "network/misc"
LICENSE = "Creative Commons Attribution-ShareAlike 2.0"

SRC_URI = "http://people.openmoko.org/olv/om-maps/${MAP_VER}/${MAP_FN}"

MAP_DIR = "${datadir}/om-maps"
FILES_${PN} = "${MAP_DIR}/${MAP_FN}"

PACKAGES = "${PN}"
PACKAGE_ARCH = "all"
ALIAS_NAME_${PN}= "${@bb.data.getVar('MAP_NAME', d, 1).replace(' ','_')}"
PKG_TAGS_${PN} = "group::maps alias::${ALIAS_NAME_${PN}}"

do_install() {
        install -d ${D}${MAP_DIR}
        cp -f ${WORKDIR}/${MAP_FN} ${D}${MAP_DIR}
}