DESCRIPTION = "Leahi application" LICENSE = "CLOSED" # Leahi repository including all needed binary and resources SRC_URI = "git://git@bitbucket.org/diality-cloud/leahi-distro-manufact.git;protocol=ssh;branch=master" # always use the latest commit. SRCREV = "${AUTOREV}" # the cloned repo is located in the ${WORKDIR}/git S = "${WORKDIR}/git" # Optionally, you can specify a specific tag or branch to use # PV = "1.0+git${SRCPV}" # define the leahi service inherit systemd SYSTEMD_SERVICE:${PN} = "leahi.service" # TODO # 1 - get files from git repository do_install() { bbplain " ---------- Leahi: Install " # build the required folders install -d ${D}/opt/leahi install -d ${D}/opt/leahi/scripts install -d ${D}/opt/leahi/translations install -d ${D}/opt/leahi/configurations # installing the required files install -m 0644 ${S}/leahi ${D}/opt/leahi/ install -m 0644 ${S}/run.sh ${D}/opt/leahi/ install -m 0644 ${S}/eglfs.json ${D}/opt/leahi/ install -m 0644 ${S}/scripts/*.sh ${D}/opt/leahi/scripts/ install -m 0644 ${S}/translations/*.qm ${D}/opt/leahi/translations/ CONFS="${S}/configurations" CONFD="${D}/opt/leahi/configurations" for d in $(find ${CONFS}/* -type d);do directory=`basename ${d}` install -d ${CONFD}/${directory}; find ${CONFS}/${directory}/* ! -name *.*~ -type f -exec \ install -m 644 {} ${CONFD}/${directory}/ \ \; done # give the execution permission to owner chmod 755 ${D}/opt/leahi/leahi chmod 755 ${D}/opt/leahi/run.sh chmod 755 ${D}/opt/leahi/scripts/*.sh # setting up the leahi service install -d ${D}${systemd_system_unitdir} install -m 644 ${S}/leahi.service ${D}${systemd_system_unitdir} } FILES:${PN} += "/opt/leahi/*" RDEPENDS:${PN} += " \ qtbase \ qtconnectivity \ qtserialbus \ qtdeclarative \ qtquickcontrols \ "