Files
Khem Raj 6819f825ca ydotool: Do not package systemd unit files on non-systemd distros
Fixes

ERROR: ydotool-1.0.4+git-r0 do_package: QA Issue: ydotool: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/systemd
  /usr/lib/systemd/user
  /usr/lib/systemd/user/ydotoold.service

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-21 10:52:51 -07:00

27 lines
835 B
BlitzBasic

SUMMARY = "Generic Linux command-line automation tool (no X!)"
DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything as long as it accepts keyboard/mouse/whatever input."
LICENSE = "AGPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
PV = "1.0.4+git"
SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
SRCREV = "0c295346d55afcc6aebaaee564333b3e1efabcbd"
S = "${WORKDIR}/git"
inherit cmake systemd
EXTRA_OECMAKE = "\
-DBUILD_DOCS=OFF \
"
do_install:append() {
if ! ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
rm -rf ${D}${systemd_user_unitdir}
rmdir ${D}${nonarch_libdir}/systemd ${D}${nonarch_libdir}
fi
}
SYSTEMD_SERVICE:${PN} = "ydotoold.service"
SYSTEMD_AUTO_ENABLE = "disable"