1 SUMMARY = "Flutter Instrument Cluster "
2 DESCRIPTION = "An instrument cluster app written in dart for the flutter runtime"
3 AUTHOR = "Aakash Solanki"
4 HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/apps/flutter-instrument-cluster"
9 LIC_FILES_CHKSUM = "file://LICENSE.md;md5=0c52b0e4b5f0dbf57ea7d44bebb2e29d"
11 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/apps/flutter-instrument-cluster;protocol=https;branch=${AGL_BRANCH} \
12 file://flutter-cluster-dashboard.service \
13 file://flutter_cluster_dashboard_on_bg-debug.json \
14 file://flutter_cluster_dashboard_on_bg-profile.json \
15 file://flutter_cluster_dashboard_on_bg-release.json \
16 file://flutter-cluster-dashboard.yaml \
17 file://flutter-cluster-dashboard.yaml.demo \
20 PV = "1.0+git${SRCPV}"
21 SRCREV = "5e0cf02b4e11d67ce8b705479e13e0b9ebbf8ad4"
25 PUBSPEC_APPNAME = "flutter_cluster_dashboard"
27 FLUTTER_APPLICATION_INSTALL_PREFIX = "/flutter"
29 OPENROUTE_API_KEY ??= "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF"
31 inherit flutter-app update-alternatives
33 APP_CONFIG = "flutter_cluster_dashboard_on_bg-release.json"
34 APP_CONFIG:class-runtimedebug = "flutter_cluster_dashboard_on_bg-debug.json"
35 APP_CONFIG:class-runtimeprofile = "flutter_cluster_dashboard_on_bg-profile.json"
37 do_configure:prepend() {
38 if [ "${OPENROUTE_API_KEY}" = "YOU_NEED_TO_SET_IT_IN_LOCAL_CONF" ]; then
39 bbwarn "WARNING: You should set openrouteservice API key to OPENROUTE_API_KEY variable in local.conf."
44 install -D -m 0644 ${WORKDIR}/flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/flutter-cluster-dashboard.service
45 install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
46 ln -s ../flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/agl-session.target.wants/flutter-cluster-dashboard.service
48 install -D -m 0644 ${WORKDIR}/${APP_CONFIG} ${D}${datadir}/flutter/default.json
50 install -d ${D}${sysconfdir}/xdg/AGL
51 install -m 0644 ${WORKDIR}/flutter-cluster-dashboard.yaml \
52 ${D}${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default
53 install -m 0644 ${WORKDIR}/flutter-cluster-dashboard.yaml.demo ${D}${sysconfdir}/xdg/AGL/
55 install -m 0755 -d ${D}${sysconfdir}/default/
56 echo 'OPENROUTE_API_KEY:${OPENROUTE_API_KEY}' >> ${D}${sysconfdir}/default/openroutekey
59 ALTERNATIVE_LINK_NAME[flutter-cluster-dashboard.yaml] = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml"
61 FILES:${PN} += "${datadir} ${systemd_user_unitdir} ${sysconfdir}/default/"
63 PACKAGE_BEFORE_PN += "${PN}-conf ${PN}-conf-demo"
65 FILES:${PN}-conf += "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default"
66 RDEPENDS:${PN}-conf = "${PN}"
67 RPROVIDES:${PN}-conf = "flutter-cluster-dashboard.yaml"
68 RCONFLICTS:${PN}-conf = "${PN}-conf-demo"
69 ALTERNATIVE:${PN}-conf = "flutter-cluster-dashboard.yaml"
70 ALTERNATIVE_TARGET_${PN}-conf = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default"
72 FILES:${PN}-conf-demo += "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.demo"
73 RDEPENDS:${PN}-conf-demo = "${PN}"
74 RPROVIDES:${PN}-conf-demo = "flutter-cluster-dashboard.yaml"
75 RCONFLICTS:${PN}-conf-demo = "${PN}-conf"
76 ALTERNATIVE:${PN}-conf-demo = "flutter-cluster-dashboard.yaml"
77 ALTERNATIVE_TARGET_${PN}-conf-demo = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.demo"