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

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

build swayidle with elogind support to enable `before-sleep` option
---
Bumped pkgrel and removed unnecessary dependency, thanks!

 community/swayidle/APKBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/community/swayidle/APKBUILD b/community/swayidle/APKBUILD
index 2b2acc92a4..4ea427c06b 100644
--- a/community/swayidle/APKBUILD
+++ b/community/swayidle/APKBUILD
@@ -2,13 +2,14 @@
 # Maintainer: Drew DeVault <[email-masked]>
 pkgname=swayidle
 pkgver=1.5
-pkgrel=0
+pkgrel=1
 pkgdesc="Idle management daemon for Wayland"
 url="http://swaywm.org"
 arch="all"
 license="MIT"
 options="!check" # no test suite included
 makedepends="
+	elogind-dev
 	meson
 	ninja
 	scdoc
@@ -24,7 +25,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