From 48614be8079d39d29ba31c44d89d65519a4a28cb Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 7 Aug 2012 13:59:35 -0500
Subject: taglib 1.7.2

---
 abs/core/taglib/PKGBUILD        | 30 ++++++++++++++++++------------
 abs/core/taglib/ape-idev2.patch | 12 ++++++++++++
 2 files changed, 30 insertions(+), 12 deletions(-)
 create mode 100644 abs/core/taglib/ape-idev2.patch

diff --git a/abs/core/taglib/PKGBUILD b/abs/core/taglib/PKGBUILD
index c1732f1..38de561 100644
--- a/abs/core/taglib/PKGBUILD
+++ b/abs/core/taglib/PKGBUILD
@@ -1,33 +1,39 @@
-# $Id: PKGBUILD 79406 2010-05-04 00:23:40Z andrea $
-# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# $Id: PKGBUILD 158844 2012-05-12 11:47:35Z tomegun $
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
 
 pkgname=taglib
-pkgver=1.6.3
+pkgver=1.7.2
 pkgrel=1
 pkgdesc="A Library for reading and editing the meta-data of several popular audio formats"
 arch=('i686' 'x86_64')
 url="http://developer.kde.org/~wheeler/taglib.html"
-license=('GPL2')
+license=('LGPL' 'MPL')
 depends=('sh' 'zlib' 'gcc-libs')
-makedepends=('cmake' 'pkgconfig')
-source=(http://developer.kde.org/~wheeler/files/src/$pkgname-$pkgver.tar.gz)
+makedepends=('cmake' 'pkg-config')
 options=('!libtool')
-md5sums=('ddf02f4e1d2dc30f76734df806e613eb')
+source=("http://developer.kde.org/~wheeler/files/src/$pkgname-$pkgver.tar.gz"
+        'ape-idev2.patch')
 
 build() {
-  cd ${srcdir}
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  patch -p1 -i "${srcdir}"/ape-idev2.patch
+
+  cd "${srcdir}"
   mkdir build
   cd build
-  cmake ../$pkgname-$pkgver \
+  cmake ../${pkgname}-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DWITH_MP4=ON \
     -DWITH_ASF=ON
-  make VERBOSE=1 || return 1
+  make
 }
 
 package() {
-  cd ${srcdir}/build
-  make DESTDIR=${pkgdir} install || return 1
+  cd "${srcdir}"/build
+  make DESTDIR="${pkgdir}" install
 }
+md5sums=('b0a9e797d3833fb933c7c3176de3d720'
+         'c7c165d99acf01456351ba39ff7056cb')
diff --git a/abs/core/taglib/ape-idev2.patch b/abs/core/taglib/ape-idev2.patch
new file mode 100644
index 0000000..9c58da4
--- /dev/null
+++ b/abs/core/taglib/ape-idev2.patch
@@ -0,0 +1,12 @@
+diff -Nur taglib-1.7.orig/taglib/ape/apeproperties.cpp taglib-1.7/taglib/ape/apeproperties.cpp
+--- taglib-1.7.orig/taglib/ape/apeproperties.cpp	2011-03-12 00:15:38.000000000 +1100
++++ taglib-1.7/taglib/ape/apeproperties.cpp	2011-07-29 21:19:45.984345060 +1000
+@@ -137,7 +137,7 @@
+   long ID3v2OriginalSize = 0;
+   bool hasID3v2 = false;
+   if(ID3v2Location >= 0) {
+-    ID3v2::Tag tag(d->file, ID3v2Location, 0);
++    ID3v2::Tag tag(d->file, ID3v2Location);
+     ID3v2OriginalSize = tag.header()->completeTagSize();
+     if(tag.header()->tagSize() > 0)
+       hasID3v2 = true;
-- 
cgit v0.12

