# Template file for 'kddockwidgets'
pkgname=kddockwidgets
version=2.4.0
revision=3
build_style=cmake
configure_args="-DKDDockWidgets_QT6=true
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs"
hostmakedepends="qt6-base extra-cmake-modules pkg-config"
makedepends="qt6-base-private-devel qt6-declarative-private-devel json-c++"
short_desc="KDAB's Dock Widget Framework for Qt"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-only OR GPL-2.0-only"
homepage="https://github.com/KDAB/KDDockWidgets"
distfiles="https://github.com/KDAB/KDDockWidgets/releases/download/v${version}/kddockwidgets-${version}.tar.gz"
checksum=51dbf24fe72e43dd7cb9a289d3cab47112010f1a2ed69b6fc8ac0dff31991ed2

kddockwidgets-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}
	 qt6-base-devel qt6-declarative-devel"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/qt6/mkspecs
		vmove usr/lib/cmake
	}
}
