Files
guru/x11-themes/qogir-icon-theme/qogir-icon-theme-2025.02.15.ebuild
Joost Ruis edc65ad12a x11-themes/qogir-icon-theme: add 2025.02.15
Ebuild updated to EAPI=8 and uses 'inherit xdg'.

Signed-off-by: Joost Ruis <joost.ruis@mocaccino.org>
Part-of: https://github.com/gentoo/guru/pull/375
Closes: https://github.com/gentoo/guru/pull/375
Signed-off-by: David Roman <davidroman96@gmail.com>
2025-10-03 11:14:22 +02:00

50 lines
1.5 KiB
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# To update icon cache
inherit xdg
DESCRIPTION="A flat colorful design icon theme for linux desktops"
HOMEPAGE="https://github.com/vinceliuice/Qogir-icon-theme"
SRC_URI="https://github.com/vinceliuice/${PN}/archive/refs/tags/2025-02-15.tar.gz"
# Extract to a non-default name
S=${WORKDIR}/Qogir-icon-theme-2025-02-15
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
# No binaries are installed so we don't need these portage features
RESTRICT="binchecks strip"
# Unsure about dependencies
DEPEND="${RDEPEND}"
src_prepare() {
eapply_user
# Don't install the ubuntu/manjaro variants
sed -i 's:THEME_VARIANTS=.*:THEME_VARIANTS="":' \
install.sh || die "Sed failed to remove theme variants!"
# Install cursors to Gentoo's cursor location
sed -i -e "/cp.*cursors/i mkdir -p \${CURSOR_DIR}/Qogir\${color}" \
-e "s:\(cp.*cursors\"\).*:\1 \${CURSOR_DIR}/Qogir\${color}:" \
install.sh || die "Sed failed changing cursor location!"
# Use xdg eclass instead
sed -i -e "/gtk-update-icon-cache/d" \
install.sh || die "Sed failed removing gtk-update-icon-cache call!"
}
src_install() {
mkdir -p "${D}/usr/share/icons" || die "failed to create icons dir"
CURSOR_DIR="${D}/usr/share/cursors/xorg-x11" "${S}"/install.sh -d "${D}/usr/share/icons" || die "install.sh failed"
# Remove broken symlink to avoid QA warning
rm "${D}/usr/share/icons/Qogir/scalable/apps/org.aegisub.Aegisub.svg" || die "failed to remove broken symlink"
}