PKGBUILDs/community/libosip2/PKGBUILD
2009-10-09 21:15:33 -05:00

43 lines
1.1 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Michal Hybner <dta081@gmail.com>
pkgname=libosip2
pkgver=3.2.0
pkgrel=1
pkgdesc="oSIP is an implementation of SIP"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/osip/"
license=('LGPL')
options=(!emptydirs !libtool)
source=(http://ftp.gnu.org/gnu/osip/libosip2-${pkgver/_/-}.tar.gz)
md5sums=('459c21f11066be46fe6ea24de438bd40')
build() {
cd ${startdir}/src/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=${startdir}/pkg install
}