Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DESCRIPTION = "My application"
- LICENSE = "Proprietary"
- LIC_FILES_CHKSUM = "file://../README.md;md5=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- COMPATIBLE_MACHINE = "(raspberrypi3)"
- require recipes-qt/qt5/qt5.inc
- DEPENDS += "qtwebengine qtwebchannel"
- MY_APP_BIN = "my-app-name"
- SRC_URI = "git://git@gitserver.com/my-app-sources \
- file://shell-startup-script \
- file://env-script.sh \
- file://my-app-conf-file.conf \
- "
- inherit update-rc.d
- INITSCRIPT_NAME = "shell-startup-script"
- INITSCRIPT_PARAMS = "defaults 91"
- S = "${WORKDIR}/git/src"
- do_install() {
- install -d ${D}${sysconfdir}/init.d
- install -d ${D}${sysconfdir}/profile.d
- install -d ${D}${ROOT_HOME}
- install -m 0755 ${WORKDIR}/shell-startup-script ${D}${sysconfdir}/init.d
- install -m 0755 ${WORKDIR}/env-script.sh ${D}${sysconfdir}/profile.d
- install -m 0755 ${B}/${MY_APP_BIN} ${D}${ROOT_HOME}
- install -m 0644 ${WORKDIR}/my-app-conf-file.conf ${D}${ROOT_HOME}
- }
- FILES_${PN} += " \
- ${ROOT_HOME}/${MY_APP_BIN} \
- "
- CONFFILES_${PN} += "${ROOT_HOME}/my-app-conf-file.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement