diff options
Diffstat (limited to 'extra/evolution')
-rw-r--r-- | extra/evolution/PKGBUILD | 45 | ||||
-rw-r--r-- | extra/evolution/evolution-2.32.1-libnotify-0.7.patch | 81 | ||||
-rw-r--r-- | extra/evolution/evolution.install | 24 |
3 files changed, 150 insertions, 0 deletions
diff --git a/extra/evolution/PKGBUILD b/extra/evolution/PKGBUILD new file mode 100644 index 000000000..96c6be99c --- /dev/null +++ b/extra/evolution/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 112779 2011-03-06 18:16:38Z ibiru $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=evolution +pkgver=2.32.2 +pkgrel=4 +pkgdesc="Integrated Workgroup and Personal Information Management for Gnome" +arch=('i686' 'x86_64') +license=('GPL') +depends=('libnotify>=0.7.1' 'gtkhtml>=3.32.2' 'evolution-data-server>=2.32.2' 'gstreamer0.10>=0.10.30' 'libpst>=0.6.41' 'libytnef>=0.1.5' 'gnome-desktop>=2.32.0' 'libcanberra>=0.26' 'gtkimageview>=1.6.4' 'libunique' 'desktop-file-utils') +makedepends=('gnome-doc-utils>=0.20.1' 'intltool' 'networkmanager') +optdepends=('bogofilter: possible junk filter plugin' + 'spamassassin: possible junk filter plugin') +groups=('gnome-extra') +options=('!libtool' '!emptydirs') +install=evolution.install +url=http://www.gnome.org/projects/evolution/ +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2 + evolution-2.32.1-libnotify-0.7.patch) +sha256sums=('1831c7f5f00b4755869cf84ef3e3f79c4705a33e0659e72b6c1ffa4a59d4a4bb' + '73746e65a3ba190ace8bd1e5fc9d52f6a67556fac0ba8727d7705ffe74e3ce0d') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np0 -i "${srcdir}/evolution-2.32.1-libnotify-0.7.patch" + + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --disable-scrollkeeper \ + --enable-nss=yes \ + --with-openldap=yes \ + --enable-smime=yes \ + --with-krb5=/usr + make + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install + cd plugins/tnef-attachments + make + make DESTDIR="${pkgdir}" install + + install -m755 -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain evolution-2.32 ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas +} diff --git a/extra/evolution/evolution-2.32.1-libnotify-0.7.patch b/extra/evolution/evolution-2.32.1-libnotify-0.7.patch new file mode 100644 index 000000000..7e2474b47 --- /dev/null +++ b/extra/evolution/evolution-2.32.1-libnotify-0.7.patch @@ -0,0 +1,81 @@ +--- calendar/gui/alarm-notify/alarm-queue.c ++++ calendar/gui/alarm-notify/alarm-queue.c +@@ -40,6 +40,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #include "alarm.h" +@@ -1606,7 +1609,12 @@ + body = g_strdup_printf ("%s %s", start_str, time_str); + } + +- n = notify_notification_new (summary, body, "stock_appointment-reminder", NULL); ++ n = notify_notification_new (summary, body, "stock_appointment-reminder" ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); ++#endif + if (!notify_notification_show(n, NULL)) + g_warning ("Could not send notification to daemon\n"); + +--- plugins/mail-notification/mail-notification.c ++++ plugins/mail-notification/mail-notification.c +@@ -47,6 +47,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #define GCONF_KEY_ROOT "/apps/evolution/eplugin/mail-notification/" +@@ -564,9 +567,14 @@ + + notify = notify_notification_new ( + _("New email"), safetext, +- "mail-unread", NULL); ++ "mail-unread" ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + notify_notification_attach_to_status_icon ( + notify, status_icon); ++#endif + + /* Check if actions are supported */ + if (can_support_actions ()) { +--- plugins/publish-calendar/publish-calendar.c ++++ plugins/publish-calendar/publish-calendar.c +@@ -46,6 +46,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + static GtkListStore *store = NULL; +@@ -150,8 +153,13 @@ + return; + } + +- notify = notify_notification_new (_("Calendar Publishing"), actual_msg->str, stock_name, NULL); ++ notify = notify_notification_new (_("Calendar Publishing"), actual_msg->str, stock_name ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + notify_notification_attach_to_status_icon (notify, status_icon); ++#endif + notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL); + notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT); + g_timeout_add (500, show_notify_cb, NULL); diff --git a/extra/evolution/evolution.install b/extra/evolution/evolution.install new file mode 100644 index 000000000..a2c3aaa54 --- /dev/null +++ b/extra/evolution/evolution.install @@ -0,0 +1,24 @@ +pkgname=evolution + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |