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

EAPI=8

DESCRIPTION="A Material Design theme for Budgie-Desktop/GNOME/GTK based desktop environments"
HOMEPAGE="https://github.com/UbuntuBudgie/${PN}"
SRC_URI="https://github.com/UbuntuBudgie/${PN}/releases/download/v${PV}/pocillo-precompiled-qogir.tar.gz -> ${P}.tar.gz"

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

# since it comes with the prepath fully included
S="${WORKDIR}"

src_compile() {
	# take only what is wanted and prevent placing anything in from root for safety
	mv ${WORKDIR}/usr/share/themes/* ${WORKDIR}/
	rm ${WORKDIR}/usr -rf
}

src_install() {
	insinto /usr/share/themes
	doins -r *
}