[arch-commits] Commit in mediastreamer/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Thu Dec 8 15:32:21 UTC 2016


    Date: Thursday, December 8, 2016 @ 15:32:20
  Author: spupykin
Revision: 198469

upgpkg: mediastreamer 2.14.0-3

upd

Modified:
  mediastreamer/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-08 15:32:14 UTC (rev 198468)
+++ PKGBUILD	2016-12-08 15:32:20 UTC (rev 198469)
@@ -7,7 +7,7 @@
 
 pkgname=mediastreamer
 pkgver=2.14.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A library written in C that allows you to create and run audio and video streams"
 arch=('i686' 'x86_64')
 url="http://www.linphone.org/"
@@ -20,8 +20,20 @@
 validpgpkeys=('9774BC1725758EB16D639F8B3ECD52DEE2F56985')
 md5sums=('ba7c44433b10e924036c01fdbee44040')
 
+prepare() {
+  cd ${pkgname}2-$pkgver
+  patch src/crypto/dtls_srtp.c <<EOF
+diff -r mediastreamer2-2.14.0/src/crypto/dtls_srtp.c mediastreamer2-2.14.0.q/src/crypto/dtls_srtp.c
+708c708
+< 	bctbx_ssl_config_set_ca_chain(dtlsContext->ssl_config, dtlsContext->crt, NULL);
+---
+> 	bctbx_ssl_config_set_ca_chain(dtlsContext->ssl_config, dtlsContext->crt);
+EOF
+}
+
 build() {
   cd ${pkgname}2-$pkgver
+  export CFLAGS="$CFLAGS -Dbctbx_list_remove_link=bctbx_list_unlink -Dbctbx_list_delete_link=bctbx_list_erase_link"
   [ -x ./configure ] || ./autogen.sh
   ./configure --prefix=/usr \
     --enable-glx --enable-xv --enable-zrtp --enable-external-ortp \



More information about the arch-commits mailing list