From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/zenity/PKGBUILD | 26 +++++++++++++++++++++++++ extra/zenity/zenity-2.32.1-libnotify-0.7.patch | 27 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 extra/zenity/PKGBUILD create mode 100644 extra/zenity/zenity-2.32.1-libnotify-0.7.patch (limited to 'extra/zenity') diff --git a/extra/zenity/PKGBUILD b/extra/zenity/PKGBUILD new file mode 100644 index 000000000..bf8e48d87 --- /dev/null +++ b/extra/zenity/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 112936 2011-03-07 19:37:34Z ibiru $ +# Maintainer: Jan de Groot + +pkgname=zenity +pkgver=2.32.1 +pkgrel=2 +pkgdesc="Display graphical dialog boxes from shell scripts" +arch=(i686 x86_64) +license=('LGPL') +depends=('libnotify>=0.7.1' 'gtk2') +makedepends=('intltool' 'gnome-doc-utils>=0.20.2') +groups=('gnome-extra') +url="http://www.gnome.org" +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2 + zenity-2.32.1-libnotify-0.7.patch) +sha256sums=('8838be041a07364b62a4281c971392e4a09bb01bb3237a836ec0457ec0ea18ac' + '98bf6ca77f0fef14a5f0b8788595710b7eb88db121103a72c4a38bb912038431') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np0 -i "${srcdir}/zenity-2.32.1-libnotify-0.7.patch" + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-scrollkeeper + make + make DESTDIR="${pkgdir}" install +} diff --git a/extra/zenity/zenity-2.32.1-libnotify-0.7.patch b/extra/zenity/zenity-2.32.1-libnotify-0.7.patch new file mode 100644 index 000000000..4d5bf7447 --- /dev/null +++ b/extra/zenity/zenity-2.32.1-libnotify-0.7.patch @@ -0,0 +1,27 @@ +--- src/notification.c ++++ src/notification.c +@@ -30,6 +30,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #include "zenity.h" +@@ -184,10 +187,14 @@ + icon = freeme = g_filename_to_uri (icon_file, NULL, NULL); + } + ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ /* notify_notification_new_with_status_icon was removed */ ++#else + notif = notify_notification_new_with_status_icon ( + message[0] /* title */, + message[1] /* summary */, + icon, status_icon); ++#endif + + g_strfreev (message); + g_free (freeme); -- cgit v1.2.3-54-g00ecf