# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=9

DESCRIPTION='Opensource cursor theme inspired by Google'
HOMEPAGE=https://github.com/ful1e5/Google_Cursor

BASE_URI=https://github.com/ful1e5/Google_Cursor/releases/download
SRC_URI="
	blue? ( ${BASE_URI}/v${PV}/GoogleDot-Blue.tar.gz )
	black? ( ${BASE_URI}/v${PV}/GoogleDot-Black.tar.gz )
	white? ( ${BASE_URI}/v${PV}/GoogleDot-White.tar.gz )
	red? ( ${BASE_URI}/v${PV}/GoogleDot-Red.tar.gz )
"
S="${WORKDIR}"
LICENSE=GPL-3

SLOT=0
KEYWORDS=amd64
IUSE='+blue +black +white +red'
REQUIRED_USE='|| ( blue black white red )'

src_install() {
	insinto /usr/share/icons

	use blue && doins -r "${WORKDIR}"/GoogleDot-Blue
	use black && doins -r "${WORKDIR}"/GoogleDot-Black
	use white && doins -r "${WORKDIR}"/GoogleDot-White
	use red && doins -r "${WORKDIR}"/GoogleDot-Red
}