archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ptlib / trunk / PKGBUILD
blob3285cabe7b30f7cd4df70e9b26763ff9dc7e5ae4
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=ptlib
4 pkgver=2.10.11
5 pkgrel=8
6 pkgdesc="Portable Windows Library"
7 arch=('x86_64')
8 url="http://www.opalvoip.org"
9 license=('GPL')
10 depends=('sdl' 'libpulse' 'v4l-utils' 'libldap')
11 replaces=('pwlib')
12 conflicts=('pwlib')
13 source=(https://downloads.sourceforge.net/opalvoip/ptlib-$pkgver.tar.bz2
14         ptlib-2.10.11-bison_fixes-2.patch
15         disable-sslv3.patch
16         openssl-1.1.0.patch
17         ptlib-gcc8.patch)
18 sha256sums=('27a8ba1fd147195c0b310897f81d26f73996b77b18147e587638444cfacd681a'
19             '733f97ae7ceeb11e65882e56dd605decdfaa6c83418fd6c582f9fdedca924b3f'
20             '6a290d636d24138282762a5a53a8c92bd1760261fcdda155b825b9d62c30fdb1'
21             '815143893de1f9c558c4dda048066992283d619a1c685a1c078ff915bd7f0d86'
22             'ca01739f1f0c1a00c3683f845fef619fabacac1a31420a28837abcb0cda3b81d')
24 prepare() {
25   cd $pkgname-$pkgver
26   patch -Np1 -i ../ptlib-2.10.11-bison_fixes-2.patch
27   patch -Np1 -i ../disable-sslv3.patch
28   patch -Np1 -i ../openssl-1.1.0.patch
29   patch -Np1 -i ../ptlib-gcc8.patch
32 build() {
33   cd $pkgname-$pkgver
34   ./configure --prefix=/usr --libdir=/usr/lib \
35       --sysconfdir=/etc --localstatedir=/var \
36       --enable-opal --enable-plugins \
37       --enable-oss --enable-v4l2 \
38       --disable-avc --enable-sdl \
39       --enable-ipv6 --enable-v4l \
40       --disable-dc --disable-odbc \
41       --enable-expat --enable-httpforms
42   make
45 package() {
46   cd $pkgname-$pkgver
47   make DESTDIR="${pkgdir}" install