blob: c6286ce3d952a4e61746a540c4585f8bf4393b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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"
}
|