summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
blob: 845ef46d76a93f85b7343f5eae7645b2b047da5a (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
32
33
34
35
36
37
38
39
SUMMARY = "CH57x keyboard based UI for container demo"
DESCRIPTION = "Container exchange user interface using CH57x keyboard. \
               This UI based on mock container manager for AGL CES2023 demo."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI += " \
    file://momikey.sh \
    file://momikey.service \
    file://momikey.rules \
"

inherit systemd

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "momikey.service"
SYSTEMD_AUTO_ENABLE:${PN} = "disable"

do_install:append () {
    install -d ${D}/usr/bin
    install -m 0755 ${WORKDIR}/momikey.sh ${D}/usr/bin/momikey.sh
    
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/momikey.service ${D}${systemd_system_unitdir}
    
    install -d ${D}${sysconfdir}/udev/rules.d
    install -m 644 ${WORKDIR}/momikey.rules ${D}${sysconfdir}/udev/rules.d/
}

FILES:${PN} += " \
    /usr/bin/momikey.sh \
    ${systemd_system_unitdir} \
    ${sysconfdir}/udev/rules.d/ \
"

RDEPENDS:${PN} := " \
    bash \
    evtest \
"