summaryrefslogtreecommitdiff
path: root/extra/opal/PKGBUILD
blob: b308fb88875598afe749160850b3c9bbd2c2a9bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 172102 2012-11-28 10:32:11Z jgc $
# Maintainer: Jan de Groot <jan@archlinux.org>
# Contributor: Tom K <tomk@runbox.com>
pkgname=opal
pkgver=3.10.9
pkgrel=1
pkgdesc="Open Phone Abstraction Library"
arch=(i686 x86_64 'mips64el')
url="http://www.opalvoip.org"
license=('GPL')
depends=('ptlib' 'libtheora' 'x264' 'speex' 'gsm')
makedepends=('ffmpeg')
options=(!makeflags)
source=(http://ftp.gnome.org/pub/GNOME/sources/opal/${pkgver%.*}/opal-$pkgver.tar.xz
        opal-ffmpeg.patch)
sha256sums=('86c717a881f5283cfb58a5d52573c337b904115b90fa3e53c77fc543605e7950'
            'd81542907ace54015b7c69c275b0c67f449eeb252ba971ba6ca728a5e20db231')

build() {
  cd "${srcdir}/opal-${pkgver}"
  patch -Np1 -i "${srcdir}/opal-ffmpeg.patch"
  CXXFLAGS="$CXXFLAGS -fpermissive" \
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
}

package() {
  cd "${srcdir}/opal-${pkgver}"
  make DESTDIR="${pkgdir}" install
  chmod 644 "${pkgdir}/usr/lib/libopal_s.a"
}