diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-09-20 17:28:29 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-09-20 17:36:55 +0200 |
commit | b21868f6199b32cb5c1309b3ed14c7a261f35d3b (patch) | |
tree | 28bcaff0b84f600e6fb5f0e9b51c74ee70b16e97 /x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild | |
parent | app-editors/remarkable: Using webkit-gtk in slot 4 (diff) | |
download | gentoo-b21868f6199b32cb5c1309b3ed14c7a261f35d3b.tar.gz gentoo-b21868f6199b32cb5c1309b3ed14c7a261f35d3b.tar.bz2 gentoo-b21868f6199b32cb5c1309b3ed14c7a261f35d3b.zip |
x11-themes/fluent-icon-theme: bump to 2022.09.20
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild')
-rw-r--r-- | x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild b/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild new file mode 100644 index 000000000000..82a474b46799 --- /dev/null +++ b/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.09.20.ebuild @@ -0,0 +1,56 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ie. 2021.12.20 -> 2021-12-20 +MY_PV="${PV//./-}" +MY_PN="${PN^}" + +inherit xdg + +DESCRIPTION="Fluent icon theme for Linux desktops" +HOMEPAGE="https://github.com/vinceliuice/Fluent-icon-theme" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vinceliuice/${MY_PN}.git" +else + SRC_URI="https://github.com/vinceliuice/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${MY_PN}-${MY_PV}" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="+black +hardlink round" +RESTRICT="binchecks strip test" + +BDEPEND="sys-apps/util-linux[hardlink(-)?]" + +src_prepare() { + default + + sed -i '/gtk-update-icon-cache/d' install.sh || die +} + +src_install() { + dodir /usr/share/icons + local myinstallopts=( + --all + --dest "${ED}/usr/share/icons" + $(usev black '--black') + $(usev round '--round') + ) + bash ./install.sh "${myinstallopts[@]}" || die "install script failed" + + if use hardlink; then + einfo "Linking duplicate icons... (may take a long time)" + hardlink -pot "${ED}/usr/share/icons" || die "hardlink failed" + fi + + # installs broken symlink (by design, but we remove it due to QA warnings) + find "${ED}" -xtype l -delete || die "removing broken symlinks failed" + + einstalldocs +} |