diff --git a/srcpkgs/xfce4-power-manager/patches/void.patch b/srcpkgs/xfce4-power-manager/patches/void.patch index 75f49b49944..ad7736ce032 100644 --- a/srcpkgs/xfce4-power-manager/patches/void.patch +++ b/srcpkgs/xfce4-power-manager/patches/void.patch @@ -1,5 +1,5 @@ ---- a/src/xfpm-pm-helper.c 2019-08-13 12:17:22.787621859 +0200 -+++ b/src/xfpm-pm-helper.c 2019-08-13 12:18:31.946471555 +0200 +--- a/src/xfpm-pm-helper.c ++++ b/src/xfpm-pm-helper.c @@ -69,11 +69,8 @@ #define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/acpiconf -s 3" #define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/acpiconf -s 4" @@ -11,12 +11,12 @@ -#ifdef BACKEND_TYPE_OPENBSD +/* voidlinux and openbsd use zzz(8) */ +#if defined(BACKEND_TYPE_LINUX) || defined(BACKEND_TYPE_OPENBSD) - #define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/zzz" + #define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/zzz" #define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/ZZZ" #endif ---- a/src/xfpm-suspend.c 2020-12-22 20:56:08.139119371 -0500 -+++ b/src/xfpm-suspend.c 2020-12-22 20:56:52.359241485 -0500 -@@ -105,40 +105,6 @@ +--- a/src/xfpm-suspend.c ++++ b/src/xfpm-suspend.c +@@ -105,40 +105,6 @@ freebsd_supports_sleep_state (const gcha } #endif @@ -57,7 +57,7 @@ gboolean xfpm_suspend_can_suspend (void) { -@@ -147,7 +113,7 @@ +@@ -147,7 +113,7 @@ xfpm_suspend_can_suspend (void) return freebsd_supports_sleep_state ("S3"); #endif #ifdef BACKEND_TYPE_LINUX @@ -66,7 +66,7 @@ #endif #ifdef BACKEND_TYPE_OPENBSD return TRUE; -@@ -164,7 +130,7 @@ +@@ -164,7 +130,7 @@ xfpm_suspend_can_hibernate (void) return freebsd_supports_sleep_state ("S4"); #endif #ifdef BACKEND_TYPE_LINUX diff --git a/srcpkgs/xfce4-power-manager/template b/srcpkgs/xfce4-power-manager/template index edc9a58e27b..80eaad540da 100644 --- a/srcpkgs/xfce4-power-manager/template +++ b/srcpkgs/xfce4-power-manager/template @@ -1,12 +1,12 @@ # Template file for 'xfce4-power-manager' pkgname=xfce4-power-manager version=4.16.0 -revision=2 +revision=3 build_style=gnu-configure configure_args="--with-locales-dir=/usr/share/locale --disable-static" hostmakedepends="pkg-config intltool" makedepends="libxfce4ui-devel libnotify-devel upower-devel xfce4-panel-devel" -depends="hicolor-icon-theme desktop-file-utils" +depends="hicolor-icon-theme desktop-file-utils upower" short_desc="Xfce power manager" maintainer="Orphaned " license="GPL-2.0-or-later"