1 # Copyright 2018-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="zx2c4 pass manager extension for Firefox"
9 HOMEPAGE="https://github.com/passff/passff"
10 SRC_URI="https://addons.mozilla.org/firefox/downloads/file/3051801/${MY_XPINAME}.xpi"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="www-plugins/passff-host[firefox]"
22 cp "${DISTDIR}/${MY_XPINAME}.xpi" . || die
26 # See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders
27 insinto "/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/"
28 # passff@invicem.pro is the extension id found in the manifest.json
29 newins "${MY_XPINAME}.xpi" "passff@invicem.pro.xpi"