Date: Saturday, March 7, 2020 @ 18:44:58
  Author: felixonmars
Revision: 376898

archrelease: copy trunk to testing-x86_64

Added:
  libmp4v2/repos/testing-x86_64/
  libmp4v2/repos/testing-x86_64/PKGBUILD
    (from rev 376897, libmp4v2/trunk/PKGBUILD)
  libmp4v2/repos/testing-x86_64/libmp4v2-c++11.patch
    (from rev 376897, libmp4v2/trunk/libmp4v2-c++11.patch)

----------------------+
 PKGBUILD             |   34 ++++++++++++++++++++++++++++++++++
 libmp4v2-c++11.patch |   11 +++++++++++
 2 files changed, 45 insertions(+)

Copied: libmp4v2/repos/testing-x86_64/PKGBUILD (from rev 376897, 
libmp4v2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2020-03-07 18:44:58 UTC (rev 376898)
@@ -0,0 +1,34 @@
+# Maintainer: Tom Gundersen <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+pkgname=libmp4v2
+pkgver=4.1.3
+pkgrel=1
+pkgdesc="An API to create and modify mp4 files as defined by 
ISO-IEC:14496-1:2001 MPEG-4 Systems"
+arch=('x86_64')
+license=('MPL')
+url="https://github.com/TechSmith/mp4v2";
+depends=('gcc-libs')
+source=("https://github.com/TechSmith/mp4v2/archive/Release-ThirdParty-MP4v2-$pkgver.tar.gz";
+        libmp4v2-c++11.patch)
+sha256sums=('e3ad6c2dc451b0875dbe34bfe7f51f4fe278b391434c886083e6d3ecd5fa08c2'
+            '946a1c9c8a927d2739248aa1164591de08507152c856f88e8c5d759c213871ee')
+
+prepare() {
+  cd mp4v2-Release-ThirdParty-MP4v2-$pkgver
+  patch -p0 -i ../libmp4v2-c++11.patch # Fix build with C++11
+}
+
+build() {
+  cd mp4v2-Release-ThirdParty-MP4v2-$pkgver
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd mp4v2-Release-ThirdParty-MP4v2-$pkgver
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install-man
+}

Copied: libmp4v2/repos/testing-x86_64/libmp4v2-c++11.patch (from rev 376897, 
libmp4v2/trunk/libmp4v2-c++11.patch)
===================================================================
--- testing-x86_64/libmp4v2-c++11.patch                         (rev 0)
+++ testing-x86_64/libmp4v2-c++11.patch 2020-03-07 18:44:58 UTC (rev 376898)
@@ -0,0 +1,11 @@
+--- src/rtphint.cpp    2012-05-20 16:11:53.000000000 -0600
++++ src/rtphint.cpp    2017-05-16 10:25:26.930705191 -0600
+@@ -339,7 +339,7 @@
+                 pSlash = strchr(pSlash, '/');
+                 if (pSlash != NULL) {
+                     pSlash++;
+-                    if (pSlash != '\0') {
++                    if (*pSlash != '\0') {
+                         length = (uint32_t)strlen(pRtpMap) - (pSlash - 
pRtpMap);
+                         *ppEncodingParams = (char *)MP4Calloc(length + 1);
+                         strncpy(*ppEncodingParams, pSlash, length);

Reply via email to