diff -Naur claws-mail-extra-plugins/claws-mail-notification-0.26-libnotify-0.7.patch claws-mail-extra-plugins/claws-mail-notification-0.26-libnotify-0.7.patch --- claws-mail-extra-plugins/claws-mail-notification-0.26-libnotify-0.7.patch 2011-04-11 23:05:18.000000000 -0500 +++ claws-mail-extra-plugins/claws-mail-notification-0.26-libnotify-0.7.patch 1969-12-31 18:00:00.000000000 -0600 @@ -1,50 +0,0 @@ ---- src/notification_popup.c -+++ src/notification_popup.c -@@ -339,7 +339,16 @@ - break; - } - -+#ifdef NOTIFY_CHECK_VERSION -+#if NOTIFY_CHECK_VERSION (0, 7, 0) -+ ppopup->notification = notify_notification_new(summary, utf8_str, NULL); -+#else - ppopup->notification = notify_notification_new(summary, utf8_str, NULL, NULL); -+#endif -+#else -+ ppopup->notification = notify_notification_new(summary, utf8_str, NULL, NULL); -+#endif -+ - g_free(utf8_str); - if(ppopup->notification == NULL) { - debug_print("Notification Plugin: Failed to create a new " ---- src/notification_trayicon.c -+++ src/notification_trayicon.c -@@ -61,6 +61,10 @@ - #ifdef HAVE_LIBNOTIFY - #include - -+#ifndef NOTIFY_CHECK_VERSION -+#define NOTIFY_CHECK_VERSION(x,y,z) 0 -+#endif -+ - typedef struct { - gint count; - gint num_mail; -@@ -601,8 +605,17 @@ - summary = notification_trayicon_popup_assemble_summary(); - utf8_str = notification_trayicon_popup_assemble_body(msginfo); - -+#if NOTIFY_CHECK_VERSION (0, 7, 0) -+ popup.notification = notify_notification_new(summary, utf8_str, NULL); -+#else - popup.notification = notify_notification_new(summary, utf8_str, NULL, NULL); -+#endif -+ -+#if NOTIFY_CHECK_VERSION (0, 7, 0) -+ /* notify_notification_attach_to_status_icon function was removed */ -+#else - notify_notification_attach_to_status_icon(popup.notification, trayicon); -+#endif - - g_free(summary); - g_free(utf8_str); diff -Naur claws-mail-extra-plugins/claws-mail-notification-0.27-libnotify-0.7.patch claws-mail-extra-plugins/claws-mail-notification-0.27-libnotify-0.7.patch --- claws-mail-extra-plugins/claws-mail-notification-0.27-libnotify-0.7.patch 1969-12-31 18:00:00.000000000 -0600 +++ claws-mail-extra-plugins/claws-mail-notification-0.27-libnotify-0.7.patch 2011-04-12 14:46:27.956635990 -0500 @@ -0,0 +1,64 @@ +diff -Naur notification_plugin-0.27/configure.ac notification_plugin-0.27/configure.ac +--- notification_plugin-0.27/configure.ac 2011-04-09 04:56:36.000000000 -0500 ++++ notification_plugin-0.27/configure.ac 2011-04-12 14:41:48.718148755 -0500 +@@ -156,7 +156,7 @@ + [ --disable-libnotify do not include libnotify support], + [enable_libnotify=$enableval], [enable_libnotify=auto]) + if test "x$enable_libnotify" != "xno"; then +- PKG_CHECK_MODULES(libnotify, libnotify >= $LIBNOTIFY_REQUIRED libnotify < $LIBNOTIFY_TOO_HIGH, ++ PKG_CHECK_MODULES(libnotify, libnotify >= $LIBNOTIFY_REQUIRED, + have_libnotify=yes, have_libnotify=no) + if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then + AC_MSG_ERROR([libnotify support explicitly requested, but libnotify couldn't be found or doesn't have the correct version]) +diff -Naur notification_plugin-0.27/src/notification_popup.c notification_plugin-0.27/src/notification_popup.c +--- notification_plugin-0.27/src/notification_popup.c 2010-08-31 01:36:59.000000000 -0500 ++++ notification_plugin-0.27/src/notification_popup.c 2011-04-12 14:41:48.718148755 -0500 +@@ -339,7 +339,16 @@ + break; + } + ++#ifdef NOTIFY_CHECK_VERSION ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ppopup->notification = notify_notification_new(summary, utf8_str, NULL); ++#else + ppopup->notification = notify_notification_new(summary, utf8_str, NULL, NULL); ++#endif ++#else ++ ppopup->notification = notify_notification_new(summary, utf8_str, NULL, NULL); ++#endif ++ + g_free(utf8_str); + if(ppopup->notification == NULL) { + debug_print("Notification Plugin: Failed to create a new " +diff -Naur notification_plugin-0.27/src/notification_trayicon.c notification_plugin-0.27/src/notification_trayicon.c +--- notification_plugin-0.27/src/notification_trayicon.c 2011-03-04 10:31:08.000000000 -0600 ++++ notification_plugin-0.27/src/notification_trayicon.c 2011-04-12 14:41:48.721482070 -0500 +@@ -61,6 +61,10 @@ + #ifdef HAVE_LIBNOTIFY + #include + ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + typedef struct { + gint count; + gint num_mail; +@@ -602,8 +606,17 @@ + summary = notification_trayicon_popup_assemble_summary(); + utf8_str = notification_trayicon_popup_assemble_body(msginfo); + ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ popup.notification = notify_notification_new(summary, utf8_str, NULL); ++#else + popup.notification = notify_notification_new(summary, utf8_str, NULL, NULL); ++#endif ++ ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ /* notify_notification_attach_to_status_icon function was removed */ ++#else + notify_notification_attach_to_status_icon(popup.notification, trayicon); ++#endif + + g_free(summary); + g_free(utf8_str); diff -Naur claws-mail-extra-plugins/PKGBUILD claws-mail-extra-plugins/PKGBUILD --- claws-mail-extra-plugins/PKGBUILD 2011-04-11 23:05:18.000000000 -0500 +++ claws-mail-extra-plugins/PKGBUILD 2011-04-12 14:47:17.219702443 -0500 @@ -32,9 +32,9 @@ replaces=('sylpheed-claws-extra-plugins') options=('!libtool') source=(http://downloads.sourceforge.net/project/sylpheed-claws/extra%20plugins/$pkgver/claws-mail-extra-plugins-$pkgver.tar.bz2 - claws-mail-notification-0.26-libnotify-0.7.patch) + claws-mail-notification-0.27-libnotify-0.7.patch) md5sums=('3d1ebc48f686ab10702380c776b5d5d0' - 'b76e1cdbff7af46d6594c34646c06fd0') + 'f7867228f2eaaaaf5b8d986b10200632') build() { cd "$srcdir/claws-mail-extra-plugins-$pkgver" @@ -47,7 +47,8 @@ cd $dir [[ $dir == notification_plugin-* ]] && - patch -Np0 -i "$srcdir/claws-mail-notification-0.26-libnotify-0.7.patch" + patch -Np1 -i "$srcdir/claws-mail-notification-0.27-libnotify-0.7.patch" && + autoreconf --force --install ./configure --prefix=/usr --disable-static make