forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chrome-gnome-shell-8.1.ebuild
60 lines (49 loc) · 1.81 KB
/
chrome-gnome-shell-8.1.ebuild
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5} )
inherit cmake-utils python-single-r1
DESCRIPTION="GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Opera browsers"
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome"
SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.xz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
app-misc/jq
sys-apps/coreutils
"
RDEPEND="${PYTHON_DEPS}
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
gnome-base/gnome-shell
"
src_configure() {
local mycmakeargs=( -DBUILD_EXTENSION=OFF )
cmake-utils_src_configure
}
src_install() {
# Chrome policy files should be removed with package.
# Otherwise it will not be possible to uninstall web extension
# from browser.
echo -n "CONFIG_PROTECT_MASK=\"" > 50"${PN}" || die
echo -n "/etc/chromium/policies/managed/${PN}.json " >> 50"${PN}" || die
echo "/etc/opt/chrome/policies/managed/${PN}.json\"" >> 50"${PN}" || die
doenvd 50"${PN}"
cmake-utils_src_install
}
pkg_postinst() {
elog "Please note that this package provides native messaging connector only."
elog
elog "Managed policy was installed to force browser extension installation"
elog "for Google Chrome, Chromium and Vivaldi browsers from Chrome Store"
elog "https://chrome.google.com/webstore/detail/gphhapmejobijbbhgpjhcjognlahblep"
elog
elog "For Mozilla Firefox you should manualy install browser extension from"
elog "https://addons.mozilla.org/firefox/addon/gnome-shell-integration/"
elog
elog "For Opera you should manualy install browser extension from"
elog "https://addons.opera.com/extensions/details/gnome-shell-integration/"
}