[arch-commits] Commit in taglib-extras/trunk (PKGBUILD taglib-1.10.patch)
Antonio Rojas
arojas at archlinux.org
Sun Dec 6 20:31:52 UTC 2015
Date: Sunday, December 6, 2015 @ 21:31:52
Author: arojas
Revision: 252992
Fix taglib 1.10 detection
Added:
taglib-extras/trunk/taglib-1.10.patch
Modified:
taglib-extras/trunk/PKGBUILD
-------------------+
PKGBUILD | 11 ++++++++---
taglib-1.10.patch | 24 ++++++++++++++++++++++++
2 files changed, 32 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-06 20:28:40 UTC (rev 252991)
+++ PKGBUILD 2015-12-06 20:31:52 UTC (rev 252992)
@@ -10,11 +10,16 @@
license=('LGPL')
depends=('taglib')
makedepends=('pkgconfig' 'cmake' 'automoc4')
-source=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.gz")
-md5sums=('e973ca609b18e2c03c147ff9fd9e6eb8')
+source=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.gz" taglib-1.10.patch)
+md5sums=('e973ca609b18e2c03c147ff9fd9e6eb8'
+ '45245fed507a770616e3011d2deb404d')
prepare() {
- mkdir build
+ mkdir -p build
+
+# Fix taglib 1.10 detection
+ cd $pkgname-$pkgver
+ patch -p1 -i ../taglib-1.10.patch
}
build() {
Added: taglib-1.10.patch
===================================================================
--- taglib-1.10.patch (rev 0)
+++ taglib-1.10.patch 2015-12-06 20:31:52 UTC (rev 252992)
@@ -0,0 +1,24 @@
+--- taglib-extras-1.0.1/cmake/modules/FindTaglib.cmake 2009-03-13 22:40:24.000000000 +0100
++++ taglib-extras-1.0.1/cmake/modules/FindTaglib.cmake.fix 2015-12-06 21:26:46.873893311 +0100
+@@ -29,10 +29,10 @@
+
+ exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_VERSION)
+
+- if(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ if("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
+ message(STATUS "TagLib version not found: version searched :${TAGLIB_MIN_VERSION}, found ${TAGLIB_VERSION}")
+ set(TAGLIB_FOUND FALSE)
+- else(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ else("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
+
+ exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_LIBRARIES)
+
+@@ -42,7 +42,7 @@
+ set(TAGLIB_FOUND TRUE)
+ endif(TAGLIB_LIBRARIES AND TAGLIB_CFLAGS)
+ string(REGEX REPLACE " *-I" ";" TAGLIB_INCLUDES "${TAGLIB_CFLAGS}")
+- endif(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
++ endif("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
+ mark_as_advanced(TAGLIB_CFLAGS TAGLIB_LIBRARIES TAGLIB_INCLUDES)
+
+ else(TAGLIBCONFIG_EXECUTABLE)
More information about the arch-commits
mailing list