mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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
2 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
--- a/src/xfpm-pm-helper.c 2019-08-13 12:17:22.787621859 +0200
|
--- a/src/xfpm-pm-helper.c
|
||||||
+++ b/src/xfpm-pm-helper.c 2019-08-13 12:18:31.946471555 +0200
|
+++ b/src/xfpm-pm-helper.c
|
||||||
@@ -69,11 +69,8 @@
|
@@ -69,11 +69,8 @@
|
||||||
#define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/acpiconf -s 3"
|
#define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/acpiconf -s 3"
|
||||||
#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/acpiconf -s 4"
|
#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/acpiconf -s 4"
|
||||||
|
@ -11,12 +11,12 @@
|
||||||
-#ifdef BACKEND_TYPE_OPENBSD
|
-#ifdef BACKEND_TYPE_OPENBSD
|
||||||
+/* voidlinux and openbsd use zzz(8) */
|
+/* voidlinux and openbsd use zzz(8) */
|
||||||
+#if defined(BACKEND_TYPE_LINUX) || defined(BACKEND_TYPE_OPENBSD)
|
+#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"
|
#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/ZZZ"
|
||||||
#endif
|
#endif
|
||||||
--- a/src/xfpm-suspend.c 2020-12-22 20:56:08.139119371 -0500
|
--- a/src/xfpm-suspend.c
|
||||||
+++ b/src/xfpm-suspend.c 2020-12-22 20:56:52.359241485 -0500
|
+++ b/src/xfpm-suspend.c
|
||||||
@@ -105,40 +105,6 @@
|
@@ -105,40 +105,6 @@ freebsd_supports_sleep_state (const gcha
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
gboolean
|
gboolean
|
||||||
xfpm_suspend_can_suspend (void)
|
xfpm_suspend_can_suspend (void)
|
||||||
{
|
{
|
||||||
@@ -147,7 +113,7 @@
|
@@ -147,7 +113,7 @@ xfpm_suspend_can_suspend (void)
|
||||||
return freebsd_supports_sleep_state ("S3");
|
return freebsd_supports_sleep_state ("S3");
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_LINUX
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_OPENBSD
|
#ifdef BACKEND_TYPE_OPENBSD
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -164,7 +130,7 @@
|
@@ -164,7 +130,7 @@ xfpm_suspend_can_hibernate (void)
|
||||||
return freebsd_supports_sleep_state ("S4");
|
return freebsd_supports_sleep_state ("S4");
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_LINUX
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'xfce4-power-manager'
|
# Template file for 'xfce4-power-manager'
|
||||||
pkgname=xfce4-power-manager
|
pkgname=xfce4-power-manager
|
||||||
version=4.16.0
|
version=4.16.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-locales-dir=/usr/share/locale --disable-static"
|
configure_args="--with-locales-dir=/usr/share/locale --disable-static"
|
||||||
hostmakedepends="pkg-config intltool"
|
hostmakedepends="pkg-config intltool"
|
||||||
makedepends="libxfce4ui-devel libnotify-devel upower-devel xfce4-panel-devel"
|
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"
|
short_desc="Xfce power manager"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
|
Loading…
Add table
Reference in a new issue