summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--community/gshutdown/PKGBUILD8
-rw-r--r--community/gshutdown/gshutdown-0.2-glib.patch100
2 files changed, 105 insertions, 3 deletions
diff --git a/community/gshutdown/PKGBUILD b/community/gshutdown/PKGBUILD
index 31bb7d762..36a1fc53a 100644
--- a/community/gshutdown/PKGBUILD
+++ b/community/gshutdown/PKGBUILD
@@ -11,12 +11,14 @@ url="http://gshutdown.tuxfamily.org"
license=('GPL')
depends=('libglade' 'libnotify')
makedepends=('pkg-config')
-source=(http://gshutdown.tuxfamily.org/release/$pkgname-$pkgver.tar.gz)
-md5sums=('c0662f6b74fa1be10e4d34bfc5731d9b')
-sha1sums=('ab73b1d6c36831df82d231ffa333cdf394fd5b3e')
+source=(http://gshutdown.tuxfamily.org/release/$pkgname-$pkgver.tar.gz
+ gshutdown-0.2-glib.patch)
+md5sums=('c0662f6b74fa1be10e4d34bfc5731d9b'
+ '8d624b2651240d5dffd5fd208a5354ff')
build() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ${srcdir}/gshutdown-0.2-glib.patch
sed -i 's/notify_notification_new("GShutdown", message, NULL, GTK_WIDGET(widget));/notify_notification_new("GShutdown", message, GTK_WIDGET(widget));/' src/gui.c
LDFLAGS="-lX11 -lXau" ./configure --prefix=/usr --mandir=/usr/share
make
diff --git a/community/gshutdown/gshutdown-0.2-glib.patch b/community/gshutdown/gshutdown-0.2-glib.patch
new file mode 100644
index 000000000..1bf1d52db
--- /dev/null
+++ b/community/gshutdown/gshutdown-0.2-glib.patch
@@ -0,0 +1,100 @@
+--- gshutdown-0.2.orig/src/timer.h 2007-04-14 17:33:39.000000000 -0500
++++ gshutdown-0.2/src/timer.h 2012-12-06 05:12:38.525897810 -0500
+@@ -21,7 +21,7 @@
+ #ifndef __GSHUTDOWN_TIMER__
+ #define __GSHUTDOWN_TIMER__
+
+-#include <glib/gtypes.h>
++#include <glib.h>
+
+ guint time_left();
+ gboolean timer_notify();
+
+--- gshutdown-0.2.orig/src/misc.h 2007-04-14 17:33:39.000000000 -0500
++++ gshutdown-0.2/src/misc.h 2012-12-06 05:13:01.306051982 -0500
+@@ -20,7 +20,7 @@
+ #ifndef __GSHUTDOWN_MISC__
+ #define __GSHUTDOWN_MISC__
+
+-#include <glib/gtypes.h> /* gchar */
++#include <glib.h> /* gchar */
+
+ /* Return a data file path. e.g: gshutdown.glade */
+ gchar *data_path(gchar *filename);
+
+--- gshutdown-0.2.orig/src/values.h 2007-05-19 06:42:54.000000000 -0500
++++ gshutdown-0.2/src/values.h 2012-12-06 05:24:45.017440329 -0500
+@@ -21,7 +21,7 @@
+ #ifndef __GSHUTDOWN_VALUES__
+ #define __GSHUTDOWN_VALUES__
+
+-#include <glib/gtypes.h>
++#include <glib.h>
+ #include "action.h"
+
+ typedef enum {
+
+--- gshutdown-0.2.orig/src/values.c 2007-04-14 17:33:40.000000000 -0500
++++ gshutdown-0.2/src/values.c 2012-12-06 05:30:03.170195207 -0500
+@@ -20,8 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <glib/gkeyfile.h>
+-#include <glib/gfileutils.h> /* g_build_path */
++#include <glib.h>
+ #include "values.h"
+ #include "gui.h"
+ #include "detectwm.h"
+
+--- gshutdown-0.2.orig/src/detectwm.h 2007-04-14 17:33:39.000000000 -0500
++++ gshutdown-0.2/src/detectwm.h 2012-12-06 05:35:18.027783235 -0500
+@@ -21,7 +21,7 @@
+ #ifndef __GSHUTDOWN_WMDETECT__
+ #define __GSHUTDOWN_WMDETECT__
+
+-#include <glib/gtypes.h>
++#include <glib.h>
+
+ gchar *detect_window_manager();
+
+--- gshutdown-0.2.orig/src/misc.c 2007-04-14 17:33:39.000000000 -0500
++++ gshutdown-0.2/src/misc.c 2012-12-06 05:38:44.229476612 -0500
+@@ -20,12 +20,7 @@
+
+ #include <unistd.h> /* X_OK */
+ #include <stdlib.h>
+-#include <glib/gstdio.h>
+-#include <glib/gstrfuncs.h> /* g_strdup_printf */
+-#include <glib/gmem.h> /* g_free */
+-#include <glib/gutils.h> /* g_getenv */
+-#include <glib/gfileutils.h> /* g_file_test() */
+-#include <glib/gshell.h> /* g_shell_parse_argv */
++#include <glib.h>
+ #include "config.h"
+ #include "misc.h"
+ #include "main.h"
+
+--- gshutdown-0.2.orig/src/timer.c 2007-05-19 06:30:38.000000000 -0500
++++ gshutdown-0.2/src/timer.c 2012-12-06 05:42:37.654561395 -0500
+@@ -18,7 +18,7 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+-#include <glib/gtypes.h>
++#include <glib.h>
+ #include "timer.h"
+ #include "values.h"
+ #include "gui.h"
+
+--- gshutdown-0.2.orig/src/main.c 2007-06-24 08:03:38.000000000 -0500
++++ gshutdown-0.2/src/main.c 2012-12-06 05:46:46.729676922 -0500
+@@ -21,7 +21,7 @@
+ #include <stdlib.h>
+ #include <signal.h>
+ #include <sys/wait.h>
+-#include <glib/gutils.h> /* g_atexit() */
++#include <glib.h> /* g_atexit() */
+ #include "main.h"
+ #include "gui.h"
+ #include "misc.h"