mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
fix kdenetwork with libktorrent 1.0.4
This commit is contained in:
parent
1a0606723f
commit
efc33253af
@ -43,10 +43,12 @@ makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'speex' 'ortp' 'libotr'
|
||||
'libgadu' 'telepathy-qt4' 'meanwhile' 'mediastreamer' 'kwebkitpart>=0.9.6' 'libktorrent>=1.0.4')
|
||||
|
||||
source=($_mirror/${_origname}-$_kdever.tar.bz2 \
|
||||
'lisa.daemon')
|
||||
'lisa.daemon'
|
||||
'kdenetwork-4.5.80-libktorrent-stable.patch')
|
||||
|
||||
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
|
||||
'66069c83fd5fa0df5d743d4486799033') # lisa.daemon
|
||||
'66069c83fd5fa0df5d743d4486799033' # lisa.daemon
|
||||
'cb18a7286a6a1900062408ce90d89125')
|
||||
|
||||
|
||||
|
||||
@ -58,7 +60,8 @@ build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
# msg "applying patches ..."
|
||||
msg "applying patches ..."
|
||||
patch -Np1 -i ${srcdir}/kdenetwork-4.5.80-libktorrent-stable.patch || return 1
|
||||
|
||||
msg "starting build ..."
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
|
22
kdenetwork/kdenetwork-4.5.80-libktorrent-stable.patch
Normal file
22
kdenetwork/kdenetwork-4.5.80-libktorrent-stable.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -ur kdenetwork-4.5.80/kget/transfer-plugins/bittorrent/bttransferfactory.cpp kdenetwork-4.5.80-libktorrent-stable/kget/transfer-plugins/bittorrent/bttransferfactory.cpp
|
||||
--- kdenetwork-4.5.80/kget/transfer-plugins/bittorrent/bttransferfactory.cpp 2010-09-20 10:50:33.000000000 +0200
|
||||
+++ kdenetwork-4.5.80-libktorrent-stable/kget/transfer-plugins/bittorrent/bttransferfactory.cpp 2010-11-22 21:46:11.000000000 +0100
|
||||
@@ -18,18 +18,12 @@
|
||||
#include "advanceddetails/btadvanceddetailswidget.h"
|
||||
|
||||
#include <kdebug.h>
|
||||
-#include <util/functions.h>
|
||||
|
||||
KGET_EXPORT_PLUGIN(BTTransferFactory)
|
||||
|
||||
BTTransferFactory::BTTransferFactory(QObject *parent, const QVariantList &args)
|
||||
: TransferFactory(parent, args)
|
||||
{
|
||||
- if (!bt::InitLibKTorrent())
|
||||
- {
|
||||
- kError(5001) << "Failed to initialize libktorrent";
|
||||
- KGet::showNotification(0, "error", i18n("Cannot initialize libktorrent. Torrent support might not work."));
|
||||
- }
|
||||
}
|
||||
|
||||
BTTransferFactory::~BTTransferFactory()
|
@ -60,9 +60,6 @@ build()
|
||||
{
|
||||
cd ${srcdir}/${_origname}-${pkgver}
|
||||
|
||||
# msg "applying patches ..."
|
||||
|
||||
|
||||
msg "starting build ..."
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DINSTALL_PRINTER_APPLET=TRUE \
|
||||
|
Loading…
Reference in New Issue
Block a user