This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
3
2
[PATCH] community/swayidle: add elogind support
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
@@ -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
> --- 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
elogind-dev depends on libelogind, so it is not required to declare it
as a dependency and is not considered good.
pkgrel= needs to be bumped as well
[PATCH v2] community/swayidle: add elogind support
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
@@ -2,13 +2,14 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
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