# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit cmake

DESCRIPTION="Provides desktop logic for Budgie-Desktop"
HOMEPAGE=""
SRC_URI="https://forge.moderndesktop.dev/BuddiesOfBudgie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
# There is a null backend available, thus ?? not ^^

DEPEND="${COMMON_DEPEND}
	>=dev-libs/glib-2.46.0:2
	>=kde-plasma/kwayland-6.5.4
	>=sys-libs/glibc-2.40
"
# kwayland will include wayland + qtbase deps, so not included here.
BDEPEND="
	dev-cpp/toml11
	>=kde-frameworks/extra-cmake-modules-6.20
"

src_unpack() {
	unpack ${P}.tar.gz
	mv ${WORKDIR}/${PN} ${WORKDIR}/${P}
}