From 93ca720ba432de1fa728627b95402a64859b6c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Mon, 3 Jan 2022 03:28:53 +0100 Subject: [PATCH] x11-themes/fluent-icon-theme: new pkg; add 2021.12.20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- x11-themes/fluent-icon-theme/Manifest | 1 + .../fluent-icon-theme-2021.12.20.ebuild | 53 +++++++++++++++++++ x11-themes/fluent-icon-theme/metadata.xml | 20 +++++++ 3 files changed, 74 insertions(+) create mode 100644 x11-themes/fluent-icon-theme/Manifest create mode 100644 x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild create mode 100644 x11-themes/fluent-icon-theme/metadata.xml diff --git a/x11-themes/fluent-icon-theme/Manifest b/x11-themes/fluent-icon-theme/Manifest new file mode 100644 index 0000000..304b2ab --- /dev/null +++ b/x11-themes/fluent-icon-theme/Manifest @@ -0,0 +1 @@ +DIST fluent-icon-theme-2021.12.20.tar.gz 33924235 BLAKE2B 17f051f086858ceb9969a8cacf6bbd2a9efd2e19d98872866ec5d9ea40e0389f3f9ad451dd6ed449716108eee20ad34fff1b121b497b4323314868bb1fb4429e SHA512 fc5e131c90f9444c92d0305489350f590f29dd78f03dd090959db00a1415a0bd35998e25ed93213c176536fa31e780942593b5d5470e4aac6fe98eb066463fa8 diff --git a/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild b/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild new file mode 100644 index 0000000..28fcd7a --- /dev/null +++ b/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild @@ -0,0 +1,53 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ie. 2021.12.20 -> 2021-12-25 +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" + $(usex black '--black' '') + $(usex 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 + + einstalldocs +} diff --git a/x11-themes/fluent-icon-theme/metadata.xml b/x11-themes/fluent-icon-theme/metadata.xml new file mode 100644 index 0000000..b9edfa8 --- /dev/null +++ b/x11-themes/fluent-icon-theme/metadata.xml @@ -0,0 +1,20 @@ + + + + + + + Install the black version of symbolic icons (for white color-schemes) + + + Hardlink duplicate icons to greatly reduce installation size + + + Install the round version of symbolic icons + + + + https://github.com/vinceliuice/Fluent-icon-theme/issues + vinceliuice/Fluent-icon-theme + +