Files
meta-openembedded/meta-oe/recipes-extended/triggerhappy/triggerhappy_git.bb
T
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

49 lines
1.7 KiB
BlitzBasic

SUMMARY = "A lightweight hotkey daemon"
HOMEPAGE = "https://github.com/wertarbyte/triggerhappy"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
# matches debian/0.5.0-1 tag
SRCREV = "44a173195986d0d853316cb02a58785ded66c12b"
PV = "0.5.0+git"
SRC_URI = "git://github.com/wertarbyte/${BPN}.git;branch=debian;protocol=https"
inherit pkgconfig perlnative update-rc.d systemd
PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
PACKAGECONFIG[systemd] = ",,systemd"
INITSCRIPT_NAME = "triggerhappy"
INITSCRIPT_PARAMS = "defaults"
SYSTEMD_SERVICE:${PN} = "triggerhappy.service triggerhappy.socket"
FILES:${PN} = "\
${sbindir}/thd \
${sbindir}/th-cmd \
${sysconfdir}/triggerhappy/triggers.d \
${nonarch_base_libdir}/udev/rules.d/80-triggerhappy.rules \
${sysconfdir}/init.d/triggerhappy \
${systemd_unitdir}/system \
"
CONFFILES:${PN} = "${sysconfdir}/udev/rules.d/80-triggerhappy.rules"
do_install() {
oe_runmake 'DESTDIR=${D}' 'BINDIR=${D}${sbindir}' install
install -d ${D}${sysconfdir}/triggerhappy/triggers.d
install -d ${D}${nonarch_base_libdir}/udev/rules.d
install -m 0644 ${S}/udev/triggerhappy-udev.rules ${D}${nonarch_base_libdir}/udev/rules.d/80-triggerhappy.rules
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${S}/debian/init.d ${D}${sysconfdir}/init.d/triggerhappy
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${S}/systemd/triggerhappy.socket ${D}${systemd_unitdir}/system
install -m 0644 ${S}/systemd/triggerhappy.service ${D}${systemd_unitdir}/system
fi
}