summaryrefslogtreecommitdiff
path: root/testing/opal/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/opal/PKGBUILD')
-rw-r--r--testing/opal/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/opal/PKGBUILD b/testing/opal/PKGBUILD
new file mode 100644
index 000000000..555d21baf
--- /dev/null
+++ b/testing/opal/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 163079 2012-07-06 16:17:32Z ibiru $
+# Maintainer: Jan de Groot <jan@archlinux.org>
+# Contributor: Tom K <tomk@runbox.com>
+pkgname=opal
+pkgver=3.10.5
+pkgrel=1
+pkgdesc="Open Phone Abstraction Library"
+arch=(i686 x86_64)
+url="http://www.opalvoip.org"
+license=('GPL')
+depends=('ptlib' 'libtheora' 'x264' 'speex' 'gsm')
+makedepends=('ffmpeg')
+options=(!makeflags)
+source=(http://downloads.sourceforge.net/sourceforge/opalvoip/$pkgname-$pkgver.tar.bz2
+ opal-ffmpeg.patch)
+md5sums=('22b0d716ed1cbc935245539e0bbab38f' '53bb06a376fb57a306522bfa6a573217')
+
+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"
+}