diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/balsa |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/balsa')
-rw-r--r-- | community/balsa/PKGBUILD | 36 | ||||
-rw-r--r-- | community/balsa/balsa-2.4.8-libnotify-0.7.patch | 51 | ||||
-rw-r--r-- | community/balsa/balsa.install | 11 |
3 files changed, 98 insertions, 0 deletions
diff --git a/community/balsa/PKGBUILD b/community/balsa/PKGBUILD new file mode 100644 index 000000000..52667428c --- /dev/null +++ b/community/balsa/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 41737 2011-03-08 18:04:34Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Roman Kyrylych <roman@archlinux.org> + +pkgname=balsa +pkgver=2.4.9 +pkgrel=1 +pkgdesc="An e-mail client for GNOME" +arch=('i686' 'x86_64') +license=('GPL') +url='http://pawsa.fedorapeople.org/balsa/' +depends=('gmime' 'gtkhtml' 'libesmtp' 'libnotify' 'gpgme' 'gtksourceview2' 'gtkspell') +makedepends=('perlxml' 'gnome-doc-utils' 'intltool' 'namcap') +install=balsa.install +source=(http://pawsa.fedorapeople.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2) +md5sums=('bd7ac44f0cf3117a5fdb46d17dac2b51') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-ssl \ + --with-gpgme=gpgme-config \ + --with-gss \ + --with-ldap \ + --with-gtksourceview \ + --with-gtkspell \ + --with-rubrica \ + --with-sqlite \ + --without-nm \ + --without-gnome + make + make GTK_UPDATE_ICON_CACHE=/bin/true DESTDIR="${pkgdir}" install +} diff --git a/community/balsa/balsa-2.4.8-libnotify-0.7.patch b/community/balsa/balsa-2.4.8-libnotify-0.7.patch new file mode 100644 index 000000000..0cef7f54a --- /dev/null +++ b/community/balsa/balsa-2.4.8-libnotify-0.7.patch @@ -0,0 +1,51 @@ +--- libbalsa/information.c ++++ libbalsa/information.c +@@ -27,6 +27,9 @@ + + #ifdef HAVE_NOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #include <gtk/gtk.h> + #endif + #include <string.h> +@@ -122,7 +125,11 @@ + g_free(msg); + + note = ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ notify_notification_new("Balsa", escaped->str, icon_str); ++#else + notify_notification_new("Balsa", escaped->str, icon_str, NULL); ++#endif + g_string_free(escaped, TRUE); + + notify_notification_set_timeout(note, 7000); /* 7 seconds */ +--- src/main-window.c ++++ src/main-window.c +@@ -85,6 +85,12 @@ + + #define MAILBOX_DATA "mailbox_data" + ++#ifdef HAVE_NOTIFY ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++#endif ++ + enum { + OPEN_MAILBOX_NODE, + CLOSE_MAILBOX_NODE, +@@ -3406,7 +3412,11 @@ + } else { + num_total = num_new; + balsa_app.main_window->new_mail_note = ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ notify_notification_new("Balsa", NULL, NULL); ++#else + notify_notification_new("Balsa", NULL, NULL, NULL); ++#endif + g_object_add_weak_pointer(G_OBJECT(balsa_app.main_window-> + new_mail_note), + (gpointer) & balsa_app.main_window-> diff --git a/community/balsa/balsa.install b/community/balsa/balsa.install new file mode 100644 index 000000000..17ca8f78a --- /dev/null +++ b/community/balsa/balsa.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |