# Template file for 'ktorrent'
pkgname=ktorrent
version=5.1.1
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt5-host-tools qt5-qmake"
makedepends="qt5-devel qt5-script-devel ki18n-devel kio-devel kxmlgui-devel
 knotifications-devel ksolid-devel kconfig-devel kcoreaddons-devel kdoctools-devel
 kross-devel kcmutils-devel sonnet-devel kdbusaddons-devel kcrash-devel
 karchive-devel knotifyconfig-devel libktorrent-devel kplotting-devel
 gmp-devel taglib-devel kdnssd-devel kdewebkit-devel"
short_desc="BitTorrent client based on the KDE platform"
maintainer="Norbert Vegh <vegh@norvegh.com>"
license="GPL-2"
homepage="http://ktorrent.pwsp.net/"
distfiles="http://mirror.netcologne.de/gentoo/distfiles/${pkgname}-${version}.tar.xz"
checksum=b54149cf1dd3ed59cb7be54c326469a64e152f39f2d7db01de9fdd6b2ce3562a

if [ "$CROSS_BUILD" ]; then
	configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
	hostmakedepends+=" kdoctools kconfig kcoreaddons"
fi
