summaryrefslogtreecommitdiff
path: root/x11-themes/candy-icons/candy-icons-9999.ebuild
blob: a5ee17477e905792b6f3689ae7e5c0bc32ff3f2b (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 xdg-utils

DESCRIPTION="🍭 Sweet gradient icons"
HOMEPAGE="https://github.com/EliverLara/candy-icons"
EGIT_REPO_URI="https://github.com/EliverLara/candy-icons.git"

LICENSE="GPL-3"
SLOT="0"

src_install() {
	default

	insinto "/usr/share/icons/${PN}"
	rm -rf "${S}"/{.git,.github,preview} || die "Could not remove useless directories"
	doins -r "${S}"/*
}

pkg_postinst() {
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_icon_cache_update
}