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

Antonio Rojas arojas at archlinux.org
Mon Dec 9 21:30:46 UTC 2019


    Date: Monday, December 9, 2019 @ 21:30:45
  Author: arojas
Revision: 536445

Update to 4.3

Modified:
  mediastreamer/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-09 21:23:12 UTC (rev 536444)
+++ PKGBUILD	2019-12-09 21:30:45 UTC (rev 536445)
@@ -5,36 +5,31 @@
 # Contributor: Mark Lee <mark at markelee.com>
 
 pkgname=mediastreamer
-pkgver=2.16.1
-pkgrel=6
+pkgver=4.3
+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 libxv libupnp bzrtp glew libsrtp)
-# xxd from Vim is needed to build
-makedepends=(intltool vim bcunit)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver.tar.gz"
-        libsrtp2.diff)
-sha256sums=('25e0557d5b992d256a6df07466ba3c10587bdf899850b46a31e79b91147e5910'
-            'faec3586e3ff8315d79fb5ef5bcc4d630ee66e63a9c6a25f28d113765fa28e58')
+makedepends=(cmake python bcunit doxygen)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/mediastreamer2/archive/$pkgver.tar.gz")
+sha256sums=('5f84b19ca26e0059b6fd3faed645755d90a81501252b18dcabd3639098af5b2a')
 validpgpkeys=('9774BC1725758EB16D639F8B3ECD52DEE2F56985')
 
 prepare() {
-  cd ${pkgname}2-$pkgver
-  patch -Np1 -i ../libsrtp2.diff
-  ./autogen.sh
+  mkdir -p build
 }
 
 build() {
-  cd ${pkgname}2-$pkgver
-  export CFLAGS="$CFLAGS -DMS2_GIT_VERSION=\"\\\"unknown\\\"\""
-  ./configure --prefix=/usr \
-    --enable-glx --enable-xv --enable-zrtp --enable-external-ortp --disable-strict
+  cd build
+  cmake ../${pkgname}2-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DENABLE_STATIC=OFF
   make
 }
 
 package() {
-  cd ${pkgname}2-$pkgver
+  cd build
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list