# Template file for 'kquickimageeditor'
pkgname=kquickimageeditor
version=0.6.0
revision=1
build_style=cmake
configure_args="-DBUILD_WITH_QT6=ON -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules kf6-kconfig qt6-base qt6-tools
 qt6-declarative-host-tools"
makedepends="kf6-kconfig-devel qt6-base-devel qt6-declarative-devel"
short_desc="QML image editing components"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, BSD-2-Clause, CC0-1.0"
homepage="https://invent.kde.org/libraries/kquickimageeditor"
distfiles="${KDE_SITE}/kquickimageeditor/kquickimageeditor-${version}.tar.xz"
checksum=11ed4ce1c164a8b6d50bbc1548b5849ab75d5fb837619b90f2cea51ed122547a

post_install() {
	vlicense LICENSES/BSD-2-Clause.txt
}

kquickimageeditor-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/qt6/mkspecs
	}
}
