# Template file for 'kcoreaddons'
pkgname=kcoreaddons
version=5.103.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools qt5-tools-devel"
makedepends="qt5-devel qt5-tools-devel"
depends="shared-mime-info"
short_desc="Qt5 addon library with a collection of non-GUI utilities"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kcoreaddons"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=beb99d0274c2bffd8e6aa87199438393222a0317e2e1118d510b5b6abf772f6a

post_install() {
	vsed -e 's;${_IMPORT_PREFIX};/usr;g' \
		-i ${DESTDIR}/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets-*.cmake
}

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