[arch-commits] Commit in easytag/trunk (PKGBUILD mp4v2-1.9.patch)

Andrea Scarpino andrea at archlinux.org
Sat Mar 6 13:44:25 EST 2010


    Date: Saturday, March 6, 2010 @ 13:44:25
  Author: andrea
Revision: 71340

upgpkg: easytag 2.1.6-3
rebuilt and patched for mp4v2 1.9.1

Added:
  easytag/trunk/mp4v2-1.9.patch
Modified:
  easytag/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   33 ++++++++++++++++++++-------------
 mp4v2-1.9.patch |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-03-06 18:44:21 UTC (rev 71339)
+++ PKGBUILD	2010-03-06 18:44:25 UTC (rev 71340)
@@ -1,27 +1,34 @@
 # $Id$
-# Maintainer: Aaron Griffin <aaron at archlinux.org>
-# Maintainer: dorphell <dorphell at archlinux.org>
+# Maintainer: Kevin Piche <kevin at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
 
 pkgname=easytag
 pkgver=2.1.6
-pkgrel=2
+pkgrel=3
 pkgdesc="Utility for viewing, editing and writing ID3 tags of your MP3 files"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 url="http://easytag.sourceforge.net/"
-depends=('id3lib' 'libid3tag' 'gtk2' 'libvorbis' 'flac>=1.2.1' 'libmp4v2'
-'speex' 'wavpack')
-install=easytag.install
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('6c5b9dc2bf1f3b0a11bd4efc81aaa9ee')
+depends=('id3lib' 'libid3tag' 'gtk2' 'libvorbis' 'flac' 'libmp4v2' 'speex' 'wavpack')
+install=${pkgname}.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+	'mp4v2-1.9.patch')
+md5sums=('6c5b9dc2bf1f3b0a11bd4efc81aaa9ee'
+         '912d9baa362c4d9e5aee0436b4ccb5a2')
 
 build() {
-  cd ${startdir}/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
+  patch -Np1 -i ${srcdir}/mp4v2-1.9.patch
   ./configure --prefix=/usr
   make || return 1
-  make DESTDIR=${startdir}/pkg install
+}
 
-  # Remove directory mimetype.
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install
+
+  # Remove directory mimetype
   sed '/^MimeType=/ s@;x-directory/normal;@;@' \
-      -i ${pkgdir}/usr/share/applications/easytag.desktop
+    -i ${pkgdir}/usr/share/applications/easytag.desktop
 }

Added: mp4v2-1.9.patch
===================================================================
--- mp4v2-1.9.patch	                        (rev 0)
+++ mp4v2-1.9.patch	2010-03-06 18:44:25 UTC (rev 71340)
@@ -0,0 +1,51 @@
+diff -ur easytag-2.1.6.orig/configure easytag-2.1.6/configure
+--- easytag-2.1.6.orig/configure	2008-07-12 17:57:44.000000000 +0300
++++ easytag-2.1.6/configure	2009-07-10 16:44:39.000000000 +0300
+@@ -22418,12 +22418,12 @@
+ /* end confdefs.h.  */
+ 
+                 #include <stdio.h>
+-                #include <mpeg4ip_config.h>
++                #include <mp4v2/mp4v2.h>
+                 int main (void)
+                 {
+                     FILE *output;
+                     output=fopen("conftest.mp4v2","w");
+-                    fprintf(output,"LIBMP4V2_NAME=%s\nLIBMP4V2_VERSION=%s\n",PACKAGE_TARNAME,PACKAGE_VERSION);
++                    fprintf(output,"MP4V2_PROJECT_name=%s\nMP4V2_PROJECT_version=%s\n",PACKAGE_TARNAME,PACKAGE_VERSION);
+                     fclose(output);
+                     exit(0);
+                 }
+@@ -22471,7 +22471,7 @@
+ 
+                 cat >conftest.$ac_ext <<_ACEOF
+ 
+-           #include <mp4.h>
++           #include <mp4v2/mp4v2.h>
+            main () {
+            MP4FileHandle hFile;
+            MP4GetMetadataCoverArt(hFile, NULL, NULL,0); }
+diff -ur easytag-2.1.6.orig/src/mp4_header.c easytag-2.1.6/src/mp4_header.c
+--- easytag-2.1.6.orig/src/mp4_header.c	2007-11-28 10:54:35.000000000 +0200
++++ easytag-2.1.6/src/mp4_header.c	2009-07-10 16:44:54.000000000 +0300
+@@ -44,7 +44,7 @@
+ #undef PACKAGE_STRING
+ #undef PACKAGE_TARNAME
+ #undef PACKAGE_VERSION
+-#include <mp4.h>
++#include <mp4v2/mp4v2.h>
+ 
+ 
+ /****************
+diff -ur easytag-2.1.6.orig/src/mp4_tag.c easytag-2.1.6/src/mp4_tag.c
+--- easytag-2.1.6.orig/src/mp4_tag.c	2007-12-11 00:08:11.000000000 +0200
++++ easytag-2.1.6/src/mp4_tag.c	2009-07-10 16:45:08.000000000 +0300
+@@ -50,7 +50,7 @@
+ #undef PACKAGE_STRING
+ #undef PACKAGE_TARNAME
+ #undef PACKAGE_VERSION
+-#include <mp4.h>
++#include <mp4v2/mp4v2.h>
+ 
+ 
+ /****************



More information about the arch-commits mailing list