Subject: [PATCH] community/swayidle: add elogind support

From: Galen Abell <[email-masked]>
Date: Fri, 6 Dec 2019 23:18:42 +0100

build swayidle with elogind support to enable `before-sleep` option
---
 community/swayidle/APKBUILD | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/community/swayidle/APKBUILD b/community/swayidle/APKBUILD
index 2b2acc92a4..c2864daabd 100644
--- a/community/swayidle/APKBUILD
+++ b/community/swayidle/APKBUILD
@@ -9,6 +9,8 @@ arch="all"
 license="MIT"
 options="!check" # no test suite included
 makedepends="
+	elogind-dev
+	libelogind
 	meson
 	ninja
 	scdoc
@@ -24,7 +26,7 @@ subpackages="
 source="$pkgname-$pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$pkgver.tar.gz"
 
 build() {
-	meson build --prefix /usr
+	meson build -Dlogind=enabled -Dlogind-provider=elogind --prefix /usr
 	ninja -C build
 }
 
-- 
2.24.0