diff options
Diffstat (limited to 'repo/libotr')
-rw-r--r-- | repo/libotr/libotr.xibuild | 34 | ||||
-rw-r--r-- | repo/libotr/socklen-t.patch | 12 |
2 files changed, 46 insertions, 0 deletions
diff --git a/repo/libotr/libotr.xibuild b/repo/libotr/libotr.xibuild new file mode 100644 index 0000000..57d7e91 --- /dev/null +++ b/repo/libotr/libotr.xibuild @@ -0,0 +1,34 @@ +#!/bin/sh + +NAME="libotr" +DESC="Off The Record Messaging, an encryption library for secure IM conversations" + +MAKEDEPS="libgcrypt" + +PKG_VER=4.1.1 +SOURCE="https://www.cypherpunks.ca/otr/libotr-$PKG_VER.tar.gz" + +ADDITIONAL=" +socklen-t.patch +" + +prepare() { + apply_patches +} + +build() { + ./configure \ + --prefix=/usr + make +} + +package() { + make DESTDIR="$PKG_DEST" install +} + +tools() { + pkgdesc="libotr tools" + mkdir -p "$PKG_DEST"/usr/ + mv "$PKG_DEST"/usr/bin "$PKG_DEST"/usr/ +} + diff --git a/repo/libotr/socklen-t.patch b/repo/libotr/socklen-t.patch new file mode 100644 index 0000000..6d543ad --- /dev/null +++ b/repo/libotr/socklen-t.patch @@ -0,0 +1,12 @@ +diff --git a/tests/regression/client/client.c b/tests/regression/client/client.c +index e72b661..e0b3453 100644 +--- a/tests/regression/client/client.c ++++ b/tests/regression/client/client.c +@@ -26,6 +26,7 @@ + #include <stdlib.h> + #include <syscall.h> + #include <sys/epoll.h> ++#include <sys/socket.h> + #include <sys/types.h> + #include <sys/un.h> + #include <unistd.h> |