summaryrefslogtreecommitdiff
blob: 94ffa1b9f6c7ea44a7fc946bc517c6229428b869 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit gnome2-utils

DESCRIPTION="Some gnome-colors iconsets including a Gentoo one"
HOMEPAGE="https://code.google.com/p/gnome-colors/"
SRC_URI="https://gnome-colors.googlecode.com/files/gnome-colors-${PV}.tar.gz
	https://dev.gentoo.org/~pacho/gnome-gentoo-${PV}.tar.gz"
S="${WORKDIR}"

LICENSE="GPL-2 public-domain"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="x11-themes/gnome-colors-common"

RESTRICT="binchecks strip"

src_install() {
	insinto /usr/share/icons

	local i
	for i in gnome*; do
		if [[ "${i}" != "gnome-colors-common" ]]; then
			doins -r "${i}"
		fi
	done

	einstalldocs
}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}