# Template file for 'kf6-kweathercore'
pkgname=kf6-kweathercore
version=26.04.1
revision=1
build_style=cmake
configure_args="-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 gettext pkg-config qt6-base qt6-tools"
makedepends="kf6-kholidays-devel kf6-ki18n-devel qt6-base-devel
 qt6-declarative-devel qt6-position-devel"
short_desc="Library to facilitate retrieval of weather information"
maintainer="Nafis <mnabid.25@outlook.com>"
license="GPL-2.0-or-later"
homepage="https://invent.kde.org/libraries/kweathercore"
distfiles="${KDE_SITE}/release-service/${version}/src/kweathercore-${version}.tar.xz"
checksum=fc3ac8c0c5f0ae5a2a43f9587d7e811d53d4ffafba1de3ee02ab55105a0a536c

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" qt6-declarative-host-tools"
fi

kf6-kweathercore-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
