tkurbad-overlay/gnome-extra/gnome-shell-extensions-topicons-plus/gnome-shell-extensions-topicons-plus-9999.ebuild
2021-05-29 00:02:44 +02:00

46 lines
1.2 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="TopIcons-plus"
inherit git-r3
DESCRIPTION="Moves legacy tray icons to top panel"
HOMEPAGE="https://extensions.gnome.org/extension/1031/topicons/"
EGIT_REPO_URI="https://github.com/phocean/${MY_PN}.git"
LICENSE="GPL-2+"
SLOT="0"
IUSE=""
# glib for glib-compile-schemas at build time, needed at runtime anyways
DEPEND="
dev-libs/glib:2
"
RDEPEND="${DEPEND}
app-eselect/eselect-gnome-shell-extensions
>=gnome-base/gnome-shell-3.36
"
BDEPEND=""
src_prepare() {
default
eapply "${FILESDIR}/${PN}-gnome-40.patch"
}
src_install() {
# TODO: Figure out if we can get the schemas to standard location, in a way that works properly runtime too
make install INSTALL_PATH="${ED}/usr/share/gnome-shell/extensions/"
rm "${ED}/usr/share/gnome-shell/extensions/TopIcons@phocean.net/README.md" || die
# Assuming it needs only compiled gettext catalogs at runtime
rm "${ED}/usr/share/gnome-shell/extensions/TopIcons@phocean.net/locale"/*/LC_MESSAGES/*.po || die
dodoc README.md
}
pkg_postinst() {
ebegin "Updating list of installed extensions"
eselect gnome-shell-extensions update
eend $?
}