# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=ktorrent pkgver=5.1.2 pkgrel=2 arch="all !ppc64le !s390x !armhf" # Limited by plasma-workspace -> libksysguard -> qt5-qtwebengine arch="$arch !mips !mips64" # Limited by libktorrent url="https://kde.org/applications/internet/org.kde.ktorrent" pkgdesc="A powerful BitTorrent client for KDE" license="GPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev ki18n-dev kiconthemes-dev kio-dev knotifications-dev knotifyconfig-dev kcmutils-dev kparts-dev solid-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev kdoctools-dev libktorrent-dev boost-dev ktextwidgets-dev karchive-dev kitemviews-dev kross-dev kplotting-dev syndication-dev kdewebkit-dev kdnssd-dev kcompletion-dev plasma-workspace-dev taglib-dev phonon-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/ktorrent/$pkgver/ktorrent-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" build() { # The infowidget plugin is disabled due to an incompatibility with musl cmake -B "$builddir"/build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DENABLE_INFOWIDGET_PLUGIN=FALSE make -C build } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="b62d05650216721299dc9db23da1a2d6ae5d3b77583ad4bd99ac032d7b135cce567feff3b66d27ac001d77e30517112e4e8c8bf8e83c1106a79509ec45498621 ktorrent-5.1.2.tar.xz"