summaryrefslogtreecommitdiff
path: root/extra/libmsn
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libmsn')
-rw-r--r--extra/libmsn/PKGBUILD14
-rw-r--r--extra/libmsn/gcc47.patch11
2 files changed, 20 insertions, 5 deletions
diff --git a/extra/libmsn/PKGBUILD b/extra/libmsn/PKGBUILD
index 123b51c63..e64b58dee 100644
--- a/extra/libmsn/PKGBUILD
+++ b/extra/libmsn/PKGBUILD
@@ -5,18 +5,22 @@
pkgname=libmsn
pkgver=4.2.1
-pkgrel=1
+pkgrel=1.1
pkgdesc="A reusable, open-source, fully documented library for connecting to Microsoft's MSN"
url="http://sourceforge.net/projects/libmsn/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
depends=('openssl')
makedepends=('cmake')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
-md5sums=('38e46e589720eefd71f92b6b76993bf0')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+ "gcc47.patch")
+md5sums=('38e46e589720eefd71f92b6b76993bf0'
+ '23bbcfa0170aa1df8387ff6419057d7c')
build() {
- cd "${srcdir}"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}/gcc47.patch"
+ cd ..
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
diff --git a/extra/libmsn/gcc47.patch b/extra/libmsn/gcc47.patch
new file mode 100644
index 000000000..d8e128913
--- /dev/null
+++ b/extra/libmsn/gcc47.patch
@@ -0,0 +1,11 @@
+diff -ru libmsn-4.2.1.orig/msn/util.cpp libmsn-4.2.1/msn/util.cpp
+--- libmsn-4.2.1.orig/msn/util.cpp 2012-04-18 19:02:12.447876971 +0200
++++ libmsn-4.2.1/msn/util.cpp 2012-04-18 19:02:36.460762835 +0200
+@@ -30,6 +30,7 @@
+ #include <openssl/rand.h>
+ #include <cstring>
+ #include <sys/timeb.h>
++#include <unistd.h>
+ #include "md5.h"
+ #include "libsiren/siren7.h"
+