summaryrefslogtreecommitdiff
path: root/extra/claws-mail
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-09 23:14:52 +0000
committerroot <root@rshg054.dnsready.net>2011-12-09 23:14:52 +0000
commitd22b68a6758c4f29a8e50a7be467374a53c68415 (patch)
tree019c8b74603792b4b8f08d6815438654a64d0e38 /extra/claws-mail
parent707457876743e969be9eb163c36928978df245cd (diff)
Fri Dec 9 23:14:52 UTC 2011
Diffstat (limited to 'extra/claws-mail')
-rw-r--r--extra/claws-mail/PKGBUILD13
-rw-r--r--extra/claws-mail/gnutls_buildfix.patch12
2 files changed, 21 insertions, 4 deletions
diff --git a/extra/claws-mail/PKGBUILD b/extra/claws-mail/PKGBUILD
index 2b68bab55..500ba4c05 100644
--- a/extra/claws-mail/PKGBUILD
+++ b/extra/claws-mail/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 136387 2011-08-28 17:30:31Z andyrtr $
+# $Id: PKGBUILD 144878 2011-12-08 21:06:16Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=claws-mail
pkgver=3.7.10
-pkgrel=1
+pkgrel=2
pkgdesc="A GTK+ based e-mail client."
arch=('i686' 'x86_64')
license=('GPL3')
@@ -19,12 +19,17 @@ replaces=('sylpheed-claws')
provides=('claws')
options=(!libtool)
install=claws-mail.install
-source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('fcf58dcff52f0908ff3bc368d820408b')
+source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/${pkgname}-${pkgver}.tar.bz2
+ gnutls_buildfix.patch)
+md5sums=('fcf58dcff52f0908ff3bc368d820408b'
+ '372bf7a9da58ae49d9da50f79db69fb6')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ # fix build with latest gnutls
+ patch -Np1 -i ${srcdir}/gnutls_buildfix.patch
+
sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py
./configure --prefix=/usr --disable-static \
diff --git a/extra/claws-mail/gnutls_buildfix.patch b/extra/claws-mail/gnutls_buildfix.patch
new file mode 100644
index 000000000..31de8eb8b
--- /dev/null
+++ b/extra/claws-mail/gnutls_buildfix.patch
@@ -0,0 +1,12 @@
+--- claws-mail-3.7.10/src/common/ssl.c 2011-12-07 14:55:08.682553870 +0100
++++ claws-mail-3.7.10/src/common/ssl.c 2011-12-07 14:55:43.808349602 +0100
+@@ -270,7 +270,9 @@ gboolean ssl_init_socket_with_method(Soc
+ if (session == NULL || r != 0)
+ return FALSE;
+
++#if GNUTLS_VERSION_NUMBER < 0x020c00
+ gnutls_transport_set_lowat (session, 1);
++#endif
+ gnutls_set_default_priority(session);
+ gnutls_protocol_set_priority (session, proto_prio);
+ gnutls_cipher_set_priority (session, cipher_prio);