# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=libktorrent pkgver=23.04.3 pkgrel=1 # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://kde.org/applications/internet/org.kde.ktorrent" pkgdesc="A powerful BitTorrent client for KDE" license="GPL-2.0-or-later" depends_dev=" boost-dev gmp-dev karchive-dev kcrash-dev ki18n-dev kio-dev qca-dev qt5-qtbase-dev solid-dev " makedepends="$depends_dev doxygen extra-cmake-modules graphviz samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/network/libktorrent.git" source="https://download.kde.org/stable/release-service/$pkgver/src/libktorrent-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build # utppolltest requires network access # superseedtest is broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(utppoll|superseed)test" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 5eb26785c29846290ed3d16809d618d3ce8027fa7a6f03d07b2ecf7c5b541dec8dc4a98f749a8716fbcedc8ea1181bdda53338c6fffb8acccdd39dabde5087df libktorrent-23.04.3.tar.xz "