summaryrefslogtreecommitdiffstats
path: root/recipes-demo/navigation/ondemandnavi-config_1.0.bb
blob: 1f17193576ce3a6148ceaa6d0880ce70c6b25c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SUMMARY     = "AGL Reference On Demand Navigation application config."
DESCRIPTION = "Config file for on-demand navigation app."
HOMEPAGE    = "https://github.com/YoshitoMomiyama/aglqtnavigation.git"
SECTION     = "apps"
LICENSE     = "Proprietary"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"

SRC_URI = "file://naviconfig.ini"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

inherit allarch

do_compile[noexec] = "1"

do_install () {
    install -D -m 644 ${UNPACKDIR}/naviconfig.ini ${D}${sysconfdir}/naviconfig.ini
    if [ -n "${MAPBOX_ACCESS_TOKEN}" ]; then
        sed -i -e 's/MAPBOX_ACCESS_TOKEN/${MAPBOX_ACCESS_TOKEN}/;s/\("enableOSM":\)true/\1false/' \
        ${D}${sysconfdir}/naviconfig.ini
    fi
}