summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Matias2020-03-29 19:05:21 -0300
committerPaulo Matias2020-03-29 19:05:21 -0300
commit5a586852e59efc04f580ec24ed7981af36a4c284 (patch)
tree1acd13311314a3c58a8aafb4fff39d030ccc359b
parent44934f68dbec94be60ffaf98d72bb08c3ba2c424 (diff)
downloadaur-5a586852e59efc04f580ec24ed7981af36a4c284.tar.gz
Disable external speex and only install the main binary
- Disable external speex, since it was causing audio hiccups and displaying warning messages in loop. - Only install the pjsua binary. The build system always builds it as a static binary anyway, even when using `--enable-shared`. Perhaps there should be a separated pjsip package for the libraries. - Introduce the `-NDEBUG` flag, which the README recommends for release builds. - Introduce the `-DPJ_TIMER_DEBUG=0` flag. This is a workaround for building version 2.10. Linking sometimes fails missing some `*_dbg` symbols. Sometimes it builds sucessfully even without the flag. Maybe there is a race condition in the build system.
-rw-r--r--PKGBUILD11
1 files changed, 4 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a97e80b8441..680da2a54a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
# Maintainer: Christian Kohlstedde <christian kohlsted de>
+# Maintainer: Paulo Matias <matias ufscar br>
# Contributor: Thiago Coutinho <root thiagoc net>
# Contributor: Marti Raudsepp <marti@juffo.org>
# Contributor: Sonny Piers <sonny <AT> fastmail <DOT> net>
@@ -6,14 +7,13 @@
pkgname=pjsua
pkgver=2.10
-pkgrel=1
+pkgrel=2
pkgdesc="Open source command line SIP user agent"
arch=(i686 x86_64)
url="http://www.pjsip.org/pjsua.htm"
depends=(
'bcg729'
'ffmpeg'
- 'speex'
)
license=('GPL')
source=("https://github.com/pjsip/pjproject/archive/${pkgver}.tar.gz")
@@ -21,16 +21,13 @@ sha512sums=('a67f083df175b536b4e6a7b7fe39e07d3ee805d6917ec64a50694542a7455c33a10
build() {
cd $srcdir/pjproject-$pkgver
+ CFLAGS+=" -DNDEBUG -DPJ_TIMER_DEBUG=0"
./configure \
- --prefix=/usr \
- --enable-shared \
- --disable-static \
- --with-external-speex
+ --prefix=/usr
make dep
make
}
package() {
cd $srcdir/pjproject-$pkgver
- make DESTDIR=$pkgdir install
install -D -m755 pjsip-apps/bin/pjsua-*gnu $pkgdir/usr/bin/pjsua
}