summaryrefslogtreecommitdiff
path: root/extra/libotr
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-12 03:39:46 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-12 03:39:46 +0000
commit61e090957dbc6b062f3a1af7eeb0d58478c6657d (patch)
tree768f076ead75d57e34580da0d78ff9f5afe170fd /extra/libotr
parentb8322aaddc0dc6b249457dd19ab7fb246b92c997 (diff)
Sun Jan 12 03:35:50 UTC 2014
Diffstat (limited to 'extra/libotr')
-rw-r--r--extra/libotr/PKGBUILD17
-rw-r--r--extra/libotr/kopete.patch12
2 files changed, 24 insertions, 5 deletions
diff --git a/extra/libotr/PKGBUILD b/extra/libotr/PKGBUILD
index 7b6ed5843..87ede8fa3 100644
--- a/extra/libotr/PKGBUILD
+++ b/extra/libotr/PKGBUILD
@@ -1,22 +1,29 @@
-# $Id: PKGBUILD 198216 2013-10-30 13:31:00Z allan $
+# $Id: PKGBUILD 203477 2014-01-11 10:56:47Z andrea $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Bug <Bug2000@gmail.com>
pkgname=libotr
pkgver=4.0.0
-pkgrel=1
+pkgrel=4
pkgdesc='Off-the-Record Messaging Library and Toolkit'
url='http://www.cypherpunks.ca/otr/'
license=('GPL' 'LGPL')
arch=('i686' 'x86_64')
depends=('libgcrypt')
-source=("http://www.cypherpunks.ca/otr/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('8865e9011b8674290837afcf7caf90c492ae09cc')
+source=("http://www.cypherpunks.ca/otr/${pkgname}-${pkgver}.tar.gz"
+ 'kopete.patch')
+sha1sums=('8865e9011b8674290837afcf7caf90c492ae09cc'
+ '55988c4f11b6852491a758ea7a5b7071e8959c55')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../kopete.patch # FS#38326
+}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --mandir=/usr/share/man --disable-static
+ ./configure --prefix=/usr --mandir=/usr/share/man
make
}
diff --git a/extra/libotr/kopete.patch b/extra/libotr/kopete.patch
new file mode 100644
index 000000000..110e4eec2
--- /dev/null
+++ b/extra/libotr/kopete.patch
@@ -0,0 +1,12 @@
+diff -Naur old/src/message.c new/src/message.c
+--- old/src/message.c 2012-08-31 02:15:35.000000000 -1000
++++ new/src/message.c 2014-01-06 01:22:43.316831758 -1000
+@@ -441,7 +441,7 @@
+ /* Fragment and send according to policy */
+ if (!err && messagep && *messagep) {
+ if (context) {
+- err = fragment_and_send(ops, NULL, context, *messagep,
++ err = fragment_and_send(ops, opdata, context, *messagep,
+ fragPolicy, messagep);
+ }
+ }