SUMMARY="Breeze SVG icon theme"
DESCRIPTION="Breeze-icons is a freedesktop.org compatible icon theme. \
It's developed by the KDE Community as part of KDE Frameworks 5 and it's \
used by default in KDE Plasma 5 and KDE Applications."
HOMEPAGE="https://github.com/KDE/breeze-icons/"
COPYRIGHT="2010-2022 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/breeze-icons/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="69530f2ac83352dca4ce4b2c4658fdb2e8bec49a5c91c7d89c76980a54864edd"
SOURCE_DIR="breeze-icons-$portVersion"
PATCHES="breeze_icons-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	breeze_icons$secondaryArchSuffix = $portVersion
	"
if [ -n "$secondaryArchSuffix" ]; then
	PROVIDES+="
		breeze_icons = $portVersion
		"
fi

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	extra_cmake_modules$secondaryArchSuffix >= $portVersion
	devel:libQt5Core$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:cmake
	cmd:find
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	mkdir -p build
	cd build

	cmake .. $cmakeDirArgs \
		-DCMAKE_BUILD_TYPE=Release \
		-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
		-DBINARY_ICONS_RESOURCE=ON

	make $jobArgs
}

INSTALL()
{
	cd build
	make install
}

TEST()
{
	cd build
	make test
}
