# Template file for 'ktorrent'
pkgname=ktorrent
version=24.08.0
revision=1
build_style=cmake
configure_args="-DWITH_SYSTEM_GEOIP=ON -DBUILD_TESTING=OFF
 -DKF6_HOST_TOOLING=/usr/lib/cmake
 -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 pkg-config qt6-base qt6-tools gettext
 kf6-kdoctools kf6-kconfig kf6-kcoreaddons kf6-kcmutils"
makedepends="qt6-base-devel kf6-ki18n-devel kf6-kio-devel kf6-kxmlgui-devel
 kf6-knotifications-devel kf6-solid-devel kf6-kconfig-devel kf6-kwidgetsaddons-devel
 kf6-kcoreaddons-devel kf6-kdoctools-devel kf6-kcmutils-devel kf6-karchive-devel
 kf6-kdbusaddons-devel kf6-kcrash-devel kf6-knotifyconfig-devel kf6-kparts-devel
 kf6-kplotting-devel kf6-kdnssd-devel kf6-syndication-devel kf6-kwindowsystem-devel
 kf6-kstatusnotifieritem-devel qt6-qt5compat-devel geoip-devel gmp-devel taglib-devel
 kf6-ktextwidgets-devel libktorrent-devel"
short_desc="BitTorrent client based on the KDE platform"
maintainer="Norbert Vegh <vegh@norvegh.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/ktorrent"
changelog="https://kde.org/announcements/changelogs/gear/${version}/#ktorrent"
distfiles="${KDE_SITE}/release-service/${version}/src/ktorrent-${version}.tar.xz"
checksum=c0ae4689aa93f500592088058de7cb16eb9956e4812ad3d3a3ba7eba908e2741

if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" = "64$XBPS_TARGET_WORDSIZE" ]; then
	makedepends+=" qt6-webengine-devel"
fi

post_install() {
	vdoc "${FILESDIR}/README.voidlinux"
}
