# Copyright 2022-2024 Bryan Gardiner <bog@khumba.net>
# Distributed under the terms of the GNU General Public License v2

EAPI=8

GIT_REV=35afa497bdb73dd2559e644872b464ea878f426a

DESCRIPTION="Display window geometry when moving & resizing in KWin 5.24+"
HOMEPAGE="https://www.pling.com/p/1833846/ https://gitlab.com/Worldblender/kwin-scripts"
SRC_URI="https://gitlab.com/Worldblender/kwin-scripts/-/archive/${GIT_REV}/kwin-scripts-${GIT_REV}.tar.bz2 -> ${P}.tar.bz2"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="kde-plasma/kwin:6"

S="${WORKDIR}/kwin-scripts-${GIT_REV}"

src_install() {
	insinto /usr/share/kwin/scripts
	doins -r "${S}/windowgeometryinfo6"
}