archrelease: copy trunk to extra-x86_64
[arch-packages.git] / opal / trunk / PKGBUILD
blobdfe7453558f95e3858647a9fae0d3df214fdc44f
1 # Maintainer: Jan de Groot <jan@archlinux.org>
2 # Contributor: Tom K <tomk@runbox.com>
3 pkgname=opal
4 pkgver=3.10.11
5 pkgrel=17
6 pkgdesc="Open Phone Abstraction Library"
7 arch=(x86_64)
8 url="http://www.opalvoip.org"
9 license=(GPL)
10 depends=(ptlib libtheora x264 speex gsm celt)
11 options=(!makeflags)
12 source=(https://downloads.sourceforge.net/opalvoip/$pkgname-$pkgver.tar.bz2
13         disable-samples-ftbfs.diff
14         opal-gcc7.patch)
15 sha256sums=('f38e7969e88a28dd9a10a6051315aceecde79d0bbd1a35676868dc5787aed706'
16             'f6497c74bbfd47fac036ff97dd74e8c87e6040d686944d29a926ccf3b7525be2'
17             'cb7270055f1f2a29dec19ecab398ce0e75b1e440312e17df8a893308bfb3732c')
19 prepare() {
20   cd $pkgname-$pkgver
21   patch -Np1 -i ../disable-samples-ftbfs.diff
22   patch -Np1 -i ../opal-gcc7.patch # Fix build with GCC 7
23   sed -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' -i src/im/msrp.cxx
26 build() {
27   cd $pkgname-$pkgver
28   CXXFLAGS="$CXXFLAGS -fpermissive" \
29   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
30     --disable-libavcodec
31   make
34 package() {
35   cd $pkgname-$pkgver
36   make DESTDIR="${pkgdir}" install