[arch-commits] Commit in mediastreamer/repos/community-x86_64 (3 files)
Antonio Rojas
arojas at archlinux.org
Thu Jul 8 18:18:23 UTC 2021
Date: Thursday, July 8, 2021 @ 18:18:23
Author: arojas
Revision: 975836
archrelease: copy trunk to community-x86_64
Added:
mediastreamer/repos/community-x86_64/PKGBUILD
(from rev 975835, mediastreamer/trunk/PKGBUILD)
mediastreamer/repos/community-x86_64/fix-build.patch
(from rev 975835, mediastreamer/trunk/fix-build.patch)
Deleted:
mediastreamer/repos/community-x86_64/PKGBUILD
-----------------+
PKGBUILD | 66 +++++++++++++++++++++++++++++-------------------------
fix-build.patch | 13 ++++++++++
2 files changed, 49 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-08 18:18:02 UTC (rev 975835)
+++ PKGBUILD 2021-07-08 18:18:23 UTC (rev 975836)
@@ -1,30 +0,0 @@
-# Maintainer:
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Adrià Arrufat <swiftscythe at gmail.com>
-# Contributor: Mark Lee <mark at markelee.com>
-
-pkgname=mediastreamer
-pkgver=4.5.22
-pkgrel=1
-pkgdesc='A library written in C that allows you to create and run audio and video streams'
-arch=(x86_64)
-url='https://github.com/BelledonneCommunications/mediastreamer2'
-license=(GPL)
-depends=(ortp ffmpeg bzrtp glew libsrtp)
-makedepends=(cmake python bcunit doxygen)
-source=(https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('8043e42bf0a017d97500f8817e89d7ba4c1e5222365b502bbbfeb9e30fa7b1a9')
-validpgpkeys=('9774BC1725758EB16D639F8B3ECD52DEE2F56985')
-
-build() {
- cmake -B build -S ${pkgname}2-$pkgver \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DENABLE_STATIC=OFF \
- -DENABLE_STRICT=OFF
- cmake --build build
-}
-
-package() {
- DESTDIR="$pkgdir" cmake --install build
-}
Copied: mediastreamer/repos/community-x86_64/PKGBUILD (from rev 975835, mediastreamer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-07-08 18:18:23 UTC (rev 975836)
@@ -0,0 +1,36 @@
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Adrià Arrufat <swiftscythe at gmail.com>
+# Contributor: Mark Lee <mark at markelee.com>
+
+pkgname=mediastreamer
+pkgver=5.0.0
+pkgrel=1
+pkgdesc='A library written in C that allows you to create and run audio and video streams'
+arch=(x86_64)
+url='https://github.com/BelledonneCommunications/mediastreamer2'
+license=(GPL)
+depends=(ortp ffmpeg bzrtp glew libsrtp)
+makedepends=(cmake python bcunit doxygen)
+source=(https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver/$pkgname-$pkgver.tar.gz
+ fix-build.patch)
+sha256sums=('ae46eb5d52590b25c8ac660b0208e7efcfbbc9968a0967e63c8684e153ff0f55'
+ '6e421e02a302c408975e8e01580ae72f35f9e9d7dc043542eade38961cb8e4f9')
+validpgpkeys=('9774BC1725758EB16D639F8B3ECD52DEE2F56985')
+
+prepare() {
+ patch -d ${pkgname}2-$pkgver -p1 < fix-build.patch
+}
+
+build() {
+ cmake -B build -S ${pkgname}2-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_STATIC=OFF \
+ -DENABLE_STRICT=OFF
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
Copied: mediastreamer/repos/community-x86_64/fix-build.patch (from rev 975835, mediastreamer/trunk/fix-build.patch)
===================================================================
--- fix-build.patch (rev 0)
+++ fix-build.patch 2021-07-08 18:18:23 UTC (rev 975836)
@@ -0,0 +1,13 @@
+diff --git a/src/crypto/ms_srtp.c b/src/crypto/ms_srtp.c
+index ef15d545..a33477d5 100644
+--- a/src/crypto/ms_srtp.c
++++ b/src/crypto/ms_srtp.c
+@@ -371,7 +371,7 @@ static int ms_add_srtp_stream(srtp_t srtp, MSCryptoSuite suite, uint32_t ssrc, c
+ policy.key = (uint8_t *)key;
+ policy.next = NULL;
+
+- err = srtp_add_or_update_stream(srtp, &policy);
++ err = srtp_add_stream(srtp, &policy);
+ if (err != err_status_ok) {
+ ms_error("Failed to add stream to srtp session (%d)", err);
+ return -1;
More information about the arch-commits
mailing list