# Template file for 'kdeplasma-addons5'
pkgname=kdeplasma-addons5
version=5.22.5
revision=1
wrksrc="${pkgname%5}-${version}"
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools kcoreaddons
 gettext"
makedepends="kross-devel kdesignerplugin-devel kdoctools-devel kholidays-devel
 plasma-workspace-devel purpose-devel"
short_desc="Various Plasma addons"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://invent.kde.org/plasma/kdeplasma-addons"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname%5}-${version}.tar.xz"
checksum=6240bb29e3e23374e193659b50b21ddf1448b3f5f88fb15094d029d6b1643103

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" kpackage-devel kconfig-devel kcoreaddons-devel plasma-framework"
	configure_args+=" -DKF5_HOST_TOOLING=/usr/lib/cmake"
fi
