You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-themes/elementary-xfce-icon-theme/elementary-xfce-icon-theme-...

40 lines
965 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit gnome2-utils
COMMIT="ebd2132be0df7f51d151f9e270304013124b894d"
DESCRIPTION="Elementary icons forked from upstream, extended and maintained for Xfce"
HOMEPAGE="https://github.com/shimmerproject/elementary-xfce"
SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="public-domain GPL-1 GPL-2 GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND=""
S=${WORKDIR}/elementary-xfce-${COMMIT}
src_install() {
insinto /usr/share/icons/
dodoc README
for shade in elementary-xfce*; do
for doc in {AUTHORS,CONTRIBUTORS,LICENSE}; do
if [[ -f ${shade}/${doc} ]]; then
newdoc ${shade}/${doc} ${shade}-${doc}
rm -f ${shade}/${doc}
fi
done
doins -r ${shade}
done
}
pkg_preinst() { gnome2_icon_savelist; }
pkg_postinst() { gnome2_icon_cache_update; }
pkg_postrm() { gnome2_icon_cache_update; }