From 081b55c6a862c3131b564219cfcca46fe1b99949 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Fri, 18 Jun 2021 11:26:48 +0200 Subject: [PATCH] swayidle: add recipe --- recipes-support/swayidle/swayidle_git.bb | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes-support/swayidle/swayidle_git.bb diff --git a/recipes-support/swayidle/swayidle_git.bb b/recipes-support/swayidle/swayidle_git.bb new file mode 100644 index 0000000..1fcda9f --- /dev/null +++ b/recipes-support/swayidle/swayidle_git.bb @@ -0,0 +1,41 @@ +SUMMARY = "This is sway's idle management daemon." +HOMEPAGE = "https://github.com/swaywm/swayidle" +BUGTRACKER = "https://github.com/swaywm/swayidle/issues" +SECTION = "graphics" +LICENSE = "MIT" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=42c09cdd4a8d20e68711825e20cba37e" + +REQUIRED_DISTRO_FEATURES = "wayland" + +DEPENDS = " \ + wayland \ + wayland-native \ + wayland-protocols \ + " + +SRC_URI = " \ + git://github.com/swaywm/swayidle.git;protocol=https \ +" + +S = "${WORKDIR}/git" +PV = "1.6" +SRCREV = "${PV}" + +inherit meson pkgconfig features_check + +PACKAGECONFIG[systemd] = "-Dlogind-provider=systemd,,systemd" +PACKAGECONFIG[sysvinit] = "-Dlogind-provider=elogind,,elogind" +PACKAGECONFIG[man-pages] = ",,scdoc-native" + +PACKAGECONFIG ?= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)} \ +" + +FILES_${PN} += "${datadir}" + +EXTRA_OEMESON += "--buildtype release" + +BBCLASSEXTEND = "" +