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/libosip2/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/libosip2/PKGBUILD')
-rw-r--r-- | community/libosip2/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/libosip2/PKGBUILD b/community/libosip2/PKGBUILD new file mode 100644 index 000000000..fc59520bf --- /dev/null +++ b/community/libosip2/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 19146 2010-06-21 08:41:34Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Michal Hybner <dta081@gmail.com> + +pkgname=libosip2 +pkgver=3.3.0 +pkgrel=2 +pkgdesc="oSIP is an implementation of SIP" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/osip/" +license=('LGPL') +depends=(glibc) +options=(!emptydirs !libtool) +source=(http://ftp.gnu.org/gnu/osip/libosip2-${pkgver/_/-}.tar.gz) +md5sums=('81493bb4d4ae6d55b71a0d4369339125') + +build() { + cd $srcdir/libosip2-${pkgver/_/-}/ + + patch -p1 <<EOF +diff -wbBur libosip2-3.1.0/src/osip2/port_sema.c libosip2-3.1.0.my/src/osip2/port_sema.c +--- libosip2-3.1.0/src/osip2/port_sema.c 2007-06-05 14:17:50.000000000 +0400 ++++ libosip2-3.1.0.my/src/osip2/port_sema.c 2008-10-22 17:47:37.000000000 +0400 +@@ -22,6 +22,14 @@ + #include <stdlib.h> + #include <stdio.h> + ++union semun ++{ ++ int val; ++ struct semid_ds *buf; ++ unsigned short int *array; ++ struct seminfo *__buf; ++}; ++ + #include <osip2/internal.h> + + #include <osip2/internal.h> +EOF + + ./configure --prefix=/usr --disable-semaphore --enable-sysv + make || return 1 + make DESTDIR=$pkgdir install +} |