EAPI=8

inherit cmake

DESCRIPTION="QT6 Theme Provider for Hyprland. Compatible with KDE, replaces qt6ct."
HOMEPAGE="https://github.com/hyprwm/hyprqt6engine"

if [[ "${PV}" = *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git"
else
	SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}"/"${P}"
	KEYWORDS="~amd64"
fi

LICENSE="BSD"
SLOT="0"

DEPEND="
	gui-wm/hyprland
	dev-libs/hyprlang
	gui-libs/hyprutils
	dev-qt/qtbase
"
RDEPEND="${DEPEND}"