local-cdn-0.1.3.ebuild (954B)
1 # Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=7 5 6 MY_XPINAME="local_cdn_webextension-${PV}-an+fx" 7 8 DESCRIPTION="Firefox addon that fixes low contrast text when using dark desktop theme" 9 HOMEPAGE="https://add0n.com/local-cdn.html" 10 SRC_URI="https://addons.mozilla.org/firefox/downloads/file/641740/${MY_XPINAME}.xpi" 11 12 LICENSE="GPL-2" 13 SLOT="0" 14 KEYWORDS="~amd64 ~x86" 15 IUSE="" 16 17 S="${WORKDIR}" 18 19 src_unpack() { 20 cp "${DISTDIR}/${MY_XPINAME}.xpi" . || die 21 } 22 23 src_install() { 24 # See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders 25 insinto "/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/" 26 # passff@invicem.pro is the extension id found in the manifest.json 27 newins "${MY_XPINAME}.xpi" "{d1b9b4a8-eba2-44b3-be23-2cfad98fde22}.xpi" 28 }