# $Id: PKGBUILD 99871 2013-10-31 02:12:03Z allan $ # Maintainer: Sergej Pupykin # Contributor: Michal Hybner pkgname=libosip2 epoch=1 pkgver=4.0.0 pkgrel=1 pkgdesc="oSIP is an implementation of SIP" arch=('i686' 'x86_64') url="http://www.gnu.org/software/osip/" license=('LGPL') depends=(glibc) options=(!emptydirs) source=(http://ftp.gnu.org/gnu/osip/libosip2-${pkgver/_/-}.tar.gz) md5sums=('c6a2c175d39ce75c15026c5738732dab') build() { cd $srcdir/libosip2-${pkgver/_/-}/ patch -p1 < #include +union semun +{ + int val; + struct semid_ds *buf; + unsigned short int *array; + struct seminfo *__buf; +}; + #include #include EOF ./configure --prefix=/usr --disable-semaphore --enable-sysv make } package() { cd $srcdir/libosip2-${pkgver/_/-}/ make DESTDIR=$pkgdir install }