xfce4-power-manager: fix whitespace in patches
While we're at it, add upower as dependency. Close: #34229
This commit is contained in:
parent
33fcddf221
commit
bf202df1b2
|
@ -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
|
||||
|
|
|
@ -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 <orphan@voidlinux.org>"
|
||||
license="GPL-2.0-or-later"
|
||||
|
|
Loading…
Reference in New Issue