# Template file for 'libktorrent'
# group=kde-gear
pkgname=libktorrent
version=26.04.3
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules gettext qt6-base qt6-tools pkg-config doxygen
 kf6-kconfig kf6-kcoreaddons"
makedepends="qt6-base-devel karchive-devel kf6-solid-devel kf6-kio-devel kf6-ki18n-devel
 kf6-kcrash-devel gmp-devel libgcrypt-devel qca-qt6-devel boost-headers"
short_desc="BitTorrent protocol implementation"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/en/ktorrent"
distfiles="${KDE_SITE}/release-service/${version}/src/libktorrent-${version}.tar.xz"
checksum=d059d3f82a4fca9292cd97d1138e30c22b5875d0a9a593a4211d2f02552e8361

libktorrent-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} kf6-karchive-devel
	 kf6-kio-devel kf6-solid-devel kf6-ki18n-devel qt6-base-devel
	 libgcrypt-devel gmp-devel boost-headers"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
