[arch-commits] Commit in kdenetwork/kde-unstable (PKGBUILD libktorrent1.0.5.patch)
Andrea Scarpino
andrea at archlinux.org
Wed Dec 29 16:34:40 UTC 2010
Date: Wednesday, December 29, 2010 @ 11:34:39
Author: andrea
Revision: 104135
upgpkg: kdenetwork 4.5.90-2
fix build with libktorrent 1.0.x
Added:
kdenetwork/kde-unstable/libktorrent1.0.5.patch
Modified:
kdenetwork/kde-unstable/PKGBUILD
------------------------+
PKGBUILD | 6 ++++--
libktorrent1.0.5.patch | 19 +++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-12-29 16:18:05 UTC (rev 104134)
+++ PKGBUILD 2010-12-29 16:34:39 UTC (rev 104135)
@@ -20,8 +20,10 @@
'qca-ossl' 'kdebase-workspace' 'kdebase-lib' 'libvncserver' 'libmsn'
'ppp' 'v4l-utils' 'libidn' 'rdesktop' 'qimageblitz' 'libxdamage' 'libgadu'
'telepathy-qt4' 'docbook-xsl' 'libktorrent' 'kwebkitpart')
-source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2")
-sha1sums=('3b744e52b884d46c4237f27f260ad65ff4dd5973')
+source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
+ 'libktorrent1.0.5.patch')
+sha1sums=('3b744e52b884d46c4237f27f260ad65ff4dd5973'
+ 'ef4e5a9b9ceb3eb235b7dce391bbde543386f31a')
build() {
cd ${srcdir}
Added: libktorrent1.0.5.patch
===================================================================
--- libktorrent1.0.5.patch (rev 0)
+++ libktorrent1.0.5.patch 2010-12-29 16:34:39 UTC (rev 104135)
@@ -0,0 +1,19 @@
+Index: kget/transfer-plugins/bittorrent/bttransferfactory.cpp
+===================================================================
+--- kget/transfer-plugins/bittorrent/bttransferfactory.cpp (revision 1209130)
++++ kget/transfer-plugins/bittorrent/bttransferfactory.cpp (revision 1209131)
+@@ -28,12 +28,13 @@
+ BTTransferFactory::BTTransferFactory(QObject *parent, const QVariantList &args)
+ : TransferFactory(parent, args)
+ {
++#if LIBKTORRENT_VERSION >= 0x010100
+ if (!bt::InitLibKTorrent())
+ {
+ kError(5001) << "Failed to initialize libktorrent";
+ KGet::showNotification(0, "error", i18n("Cannot initialize libktorrent. Torrent support might not work."));
+ }
+-#if LIBKTORRENT_VERSION >= 0x010100
++
+ bt::Job::setJobTracker(new BTJobTracker(this));
+ #endif
+ }
More information about the arch-commits
mailing list