summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston-terminal-conf.bb
blob: 573e2df020ffc7cf7447a7cd63e02eedecb325e1 (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
25
26
27
28
29
30
31
SUMMARY = "AGL user session"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

SRC_URI = " \
    file://org.freedesktop.weston.wayland-terminal.desktop \
    file://weston-terminal.desktop \
"

inherit allarch

do_install() {
    install -d ${D}${datadir}/applications
    install -m 0644 ${WORKDIR}/org.freedesktop.weston.wayland-terminal.desktop ${D}${datadir}/applications

    # Enable systemd sandboxing override as a demonstration
    mkdir -p ${D}${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d/
    ln -sf ${sysconfdir}/systemd/sandboxing/no-network.conf ${D}${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d/

    # HACK - install .desktop file for systemd until applaunchd can do enumeration with homescreen names and icons
    install -m 0644 ${WORKDIR}/weston-terminal.desktop ${D}${datadir}/applications/
}

FILES:${PN} = " \
    ${datadir}/applications \
    ${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d \
"

RDEPENDS:${PN} = " \
    weston \
"