[arch-commits] Commit in libmp4v2/repos/extra-x86_64 (3 files)

Antonio Rojas arojas at archlinux.org
Wed May 30 21:01:22 UTC 2018


    Date: Wednesday, May 30, 2018 @ 21:01:22
  Author: arojas
Revision: 325227

archrelease: copy trunk to extra-x86_64

Added:
  libmp4v2/repos/extra-x86_64/PKGBUILD
    (from rev 325226, libmp4v2/trunk/PKGBUILD)
  libmp4v2/repos/extra-x86_64/libmp4v2-c++11.patch
    (from rev 325226, libmp4v2/trunk/libmp4v2-c++11.patch)
Deleted:
  libmp4v2/repos/extra-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-30 21:01:02 UTC (rev 325226)
+++ PKGBUILD	2018-05-30 21:01:22 UTC (rev 325227)
@@ -1,28 +0,0 @@
-# $Id$
-# Maintainer: Tom Gundersen <teg at jklm.no>
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Jan de Groot <jgc at archlinux.org>
-
-pkgname=libmp4v2
-pkgver=2.0.0
-pkgrel=4
-pkgdesc="MPEG-4 library"
-arch=('i686' 'x86_64')
-license=('MPL')
-url="http://code.google.com/p/mp4v2/"
-depends=('gcc-libs')
-source=("https://sources.archlinux.org/other/packages/$pkgname/mp4v2-${pkgver}.tar.bz2")
-
-build() {
-  cd ${srcdir}/mp4v2-${pkgver}
-
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd ${srcdir}/mp4v2-${pkgver}
-  make DESTDIR=${pkgdir} install
-  make DESTDIR=${pkgdir} install-man
-}
-md5sums=('c91f06711225b34b4c192c9114887b14')

Copied: libmp4v2/repos/extra-x86_64/PKGBUILD (from rev 325226, libmp4v2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-05-30 21:01:22 UTC (rev 325227)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=libmp4v2
+pkgver=2.0.0
+pkgrel=5
+pkgdesc="MPEG-4 library"
+arch=('x86_64')
+license=('MPL')
+url="http://code.google.com/p/mp4v2/"
+depends=('gcc-libs')
+source=("https://sources.archlinux.org/other/packages/$pkgname/mp4v2-${pkgver}.tar.bz2" libmp4v2-c++11.patch)
+sha256sums=('0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338'
+            '946a1c9c8a927d2739248aa1164591de08507152c856f88e8c5d759c213871ee')
+
+prepare() {
+  cd mp4v2-$pkgver
+  patch -p0 -i ../libmp4v2-c++11.patch # Fix build with C++11
+}
+
+build() {
+  cd mp4v2-$pkgver
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd mp4v2-$pkgver
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install-man
+}

Copied: libmp4v2/repos/extra-x86_64/libmp4v2-c++11.patch (from rev 325226, libmp4v2/trunk/libmp4v2-c++11.patch)
===================================================================
--- libmp4v2-c++11.patch	                        (rev 0)
+++ libmp4v2-c++11.patch	2018-05-30 21:01:22 UTC (rev 325227)
@@ -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);



More information about the arch-commits mailing list