Commit be5d77a7 authored by Florent Revest's avatar Florent Revest

Run mapplauncherd

parent 47b1909b
[Unit]
Description=Application launch booster for Qt Components on QtQuick2
After=pre-user-session.target
Requires=dbus.socket pre-user-session.target
[Service]
Type=notify
ExecStart=/usr/libexec/mapplauncherd/booster-qtcomponents-qt5 --systemd
EnvironmentFile=/var/lib/environment/mapplauncherd/qtcomponents-qt5.conf
OOMScoreAdjust=-250
[Install]
WantedBy=user-session.target
import QtQuick 2.4
import QtQuick.Controls 1.3
import org.asteroid.controls 1.0
Application {
Button { }
Label { }
Slider { }
Switch { }
TextArea { }
TextField { }
}
......@@ -3,23 +3,31 @@ HOMEPAGE = "https://git.merproject.org/mer-core/mapplauncherd-booster-qtcomponen
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://src/qmlbooster.cpp;beginline=1;endline=18;md5=7e2bc276f949feb1d8229e665a6a2559"
SRC_URI = "git://git.merproject.org/mer-core/mapplauncherd-booster-qtcomponents.git;protocol=https"
SRC_URI = "git://git.merproject.org/mer-core/mapplauncherd-booster-qtcomponents.git;protocol=https \
file://booster-qtcomponents-qt5.service \
file://preload.qml"
SRCREV = "1f9706fb9001cd350e4f6bcefbdb12d036af2ae2"
PR = "r1"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "mapplauncherd mapplauncherd-qt qtdeclarative qtbase"
DEPENDS += "mapplauncherd mapplauncherd-qt qtdeclarative qtbase polkit"
RDEPENDS_${PN} += "polkit"
do_configure_prepend() {
sed -i "s@INCLUDEPATH += /usr/include/applauncherd/@INCLUDEPATH += ${STAGING_INCDIR}/applauncherd ${STAGING_INCDIR}/mdeclarativecache5/@" ${S}/booster-qtcomponents.pro
sed -i "s@LIBS += -lapplauncherd@LIBS += -lapplauncherd -lmdeclarativecache5@" ${S}/booster-qtcomponents.pro
cp ${WORKDIR}/booster-qtcomponents-qt5.service ${S}/data/booster-qtcomponents-qt5.service
cp ${WORKDIR}/preload.qml ${S}/qml/preload.qml
}
do_install_append() {
install -d ${D}/usr/lib/systemd/user/default.target.wants/
# ln -s ../booster-qtcomponents-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qtcomponents-qt5.service
ln -s ../booster-qtcomponents-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qtcomponents-qt5.service
install -d ${D}/var/lib/environment/mapplauncherd
echo "QT_QPA_PLATFORM=wayland-egl" >> ${D}/var/lib/environment/mapplauncherd/qtcomponents-qt5.conf
}
FILES_${PN} += "/usr/libexec/mapplauncherd/ /usr/lib/systemd/user /usr/share/booster-qtcomponents-qt5"
......
......@@ -10,7 +10,8 @@ PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qtdeclarative qtbase mapplauncherd"
DEPENDS += "qtdeclarative qtbase mapplauncherd polkit"
RDEPENDS_${PN} += "polkit"
do_configure_prepend() {
sed -i "s@INCLUDEPATH += /usr/include/applauncherd@INCLUDEPATH += ${STAGING_INCDIR}/applauncherd@" ${S}/qtbooster/qtbooster.pro
......@@ -18,8 +19,8 @@ do_configure_prepend() {
do_install_append() {
install -d ${D}/usr/lib/systemd/user/default.target.wants/
# ln -s ../booster-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5.service
# ln -s ../booster-qt5-signal.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5-signal.service
ln -s ../booster-qt5.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5.service
ln -s ../booster-qt5-signal.service ${D}/usr/lib/systemd/user/default.target.wants/booster-qt5-signal.service
}
FILES_${PN} += "/usr/share/mkspecs/features /usr/lib/systemd/user /usr/libexec/mapplauncherd"
......
......@@ -21,7 +21,7 @@ do_configure_prepend() {
do_install_append() {
install -d ${D}/usr/lib/systemd/user/default.target.wants/
# ln -s ../booster-generic.service ${D}/usr/lib/systemd/user/default.target.wants/booster-generic.service
ln -s ../booster-generic.service ${D}/usr/lib/systemd/user/default.target.wants/booster-generic.service
}
FILES_${PN} += "/usr/lib/systemd/user /usr/libexec/mapplauncherd/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment