# Template file for 'breeze-icons'
pkgname=breeze-icons
version=6.5.0
revision=1
build_style=cmake
build_helper=qemu
hostmakedepends="kcoreaddons extra-cmake-modules qt6-base qt6-tools
 python3-lxml libxml2"
makedepends="qt6-base-devel"
checkdepends="fdupes"
short_desc="Breeze icon theme"
maintainer="John <me@johnnynator.dev>"
license="LGPL-3.0-or-later"
homepage="https://community.kde.org/Frameworks"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=ca6e8faef84891750ebc240d0b99f42414e5f643678d5b1ae94bcbad551ab0c4
nostrip=yes

if [ -z "$CROSS_BUILD" ]; then
	configure_args="-DBINARY_ICONS_RESOURCE=ON"
else
	configure_args="-DBINARY_ICONS_RESOURCE=OFF"
fi

libbreeze-icons_package() {
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

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