git » ktorrent.git » commit a334b53

Fix build with KDE 4.12

author Andrea Scarpino
2014-02-08 16:27:38 UTC
committer Andrea Scarpino
2014-02-08 16:27:38 UTC
parent 1fb974ee3e9c1c1a7d7c664a43845300aef55905

Fix build with KDE 4.12

PKGBUILD +3 -0
kde412.patch +18 -0

diff --git a/PKGBUILD b/PKGBUILD
index be4f22e..1913797 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,14 +13,17 @@ depends=('libktorrent' 'kdebase-runtime' 'taglib')
 makedepends=('automoc4' 'cmake' 'boost' 'kdebase-workspace')
 install=${pkgname}.install
 source=("http://ktorrent.pwsp.net/downloads/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+        'kde412.patch'
         'kdebug-315239.patch')
 sha1sums=('6b56bab48dd07805225c3d4d5d5d1c4c1def241e'
+          'f2c0e05913b2f21b593818e2cd3547d09f86be86'
           'd247aecbbbbbda3eef8dcb51d3db244b1c845f85')
 
 prepare() {
 	mkdir build
 
   cd ${pkgname}-${pkgver}
+  patch -p1 -i "${srcdir}"/kde412.patch
   patch -p1 -i "${srcdir}"/kdebug-315239.patch
 }
 
diff --git a/kde412.patch b/kde412.patch
new file mode 100644
index 0000000..445a645
--- /dev/null
+++ b/kde412.patch
@@ -0,0 +1,18 @@
+From: Christoph Feck <christoph@maxiom.de>
+Date: Fri, 19 Oct 2012 08:56:22 +0000
+Subject: SVN_SILENT link
+X-Git-Url: http://quickgit.kde.org/?p=ktorrent.git&a=commitdiff&h=3ef62c439027acc0a166101419fff4bc0c69013d
+---
+SVN_SILENT link
+---
+
+
+--- a/plugins/ipfilter/tests/CMakeLists.txt
++++ b/plugins/ipfilter/tests/CMakeLists.txt
+@@ -1,4 +1,4 @@
+ set(ipblocklisttest_SRCS ipblocklisttest.cpp ../ipblocklist.cpp)
+ kde4_add_unit_test(ipblocklisttest TESTNAME ipblocklisttest ${ipblocklisttest_SRCS})
+-target_link_libraries(ipblocklisttest ${QT_QTTEST_LIBRARY} ktorrent)
++target_link_libraries(ipblocklisttest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} ${LIBKTORRENT_LIBRARIES})
+ 
+