mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
xfce4-power-manager: update to 4.16.0.
This commit is contained in:
parent
da31f1a894
commit
b71e7e723b
2 changed files with 37 additions and 33 deletions
|
@ -14,9 +14,9 @@
|
||||||
#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
|
||||||
--- src/xfpm-suspend.c.orig 2019-08-13 12:19:21.476080088 +0200
|
--- src/xfpm-suspend.c.orig 2020-12-22 20:56:08.139119371 -0500
|
||||||
+++ src/xfpm-suspend.c 2019-08-13 12:20:59.699286887 +0200
|
+++ src/xfpm-suspend.c 2020-12-22 20:56:52.359241485 -0500
|
||||||
@@ -101,35 +101,6 @@ freebsd_supports_sleep_state (const gcha
|
@@ -105,40 +105,6 @@
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -35,9 +35,13 @@
|
||||||
- command = g_strdup_printf ("/usr/bin/pm-is-supported --%s", state);
|
- command = g_strdup_printf ("/usr/bin/pm-is-supported --%s", state);
|
||||||
- g_debug ("executing command: %s", command);
|
- g_debug ("executing command: %s", command);
|
||||||
- ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
|
- ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
|
||||||
|
-
|
||||||
- if (!ret) {
|
- if (!ret) {
|
||||||
|
- if (error)
|
||||||
|
- {
|
||||||
- g_warning ("failed to run script: %s", error->message);
|
- g_warning ("failed to run script: %s", error->message);
|
||||||
- g_error_free (error);
|
- g_error_free (error);
|
||||||
|
- }
|
||||||
- goto out;
|
- goto out;
|
||||||
- }
|
- }
|
||||||
- ret = (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS));
|
- ret = (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS));
|
||||||
|
@ -49,10 +53,11 @@
|
||||||
-}
|
-}
|
||||||
-#endif
|
-#endif
|
||||||
-
|
-
|
||||||
|
-
|
||||||
gboolean
|
gboolean
|
||||||
xfpm_suspend_can_suspend (void)
|
xfpm_suspend_can_suspend (void)
|
||||||
@@ -139,7 +110,7 @@ xfpm_suspend_can_suspend (void)
|
{
|
||||||
|
@@ -147,7 +113,7 @@
|
||||||
return freebsd_supports_sleep_state ("S3");
|
return freebsd_supports_sleep_state ("S3");
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_LINUX
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
@ -61,7 +66,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_OPENBSD
|
#ifdef BACKEND_TYPE_OPENBSD
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -156,7 +127,7 @@ xfpm_suspend_can_hibernate (void)
|
@@ -164,7 +130,7 @@
|
||||||
return freebsd_supports_sleep_state ("S4");
|
return freebsd_supports_sleep_state ("S4");
|
||||||
#endif
|
#endif
|
||||||
#ifdef BACKEND_TYPE_LINUX
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Template file for 'xfce4-power-manager'
|
# Template file for 'xfce4-power-manager'
|
||||||
pkgname=xfce4-power-manager
|
pkgname=xfce4-power-manager
|
||||||
reverts=1.7.0_1
|
version=4.16.0
|
||||||
version=1.6.6
|
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
|
@ -13,4 +12,4 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://xfce.org/"
|
homepage="https://xfce.org/"
|
||||||
distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
|
distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
|
||||||
checksum=1b7bf0d3e8af69b10f7b6a518451e01fc7888e0d9d360bc33f6c89179bb6080b
|
checksum=eb9c587c01b502fa45a32e7fc2aba98fa6d8391475133883654f77e562c43bf3
|
||||||
|
|
Loading…
Add table
Reference in a new issue