summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2019-07-30 21:41:14 -0300
committerFreemor <freemor@freemor.ca>2019-07-30 21:41:14 -0300
commitc4723375f4323d47d563413b48072110b9eedd1f (patch)
tree24d1561fef4d200d09aa22580ca0cd882e13328e
parentd269fc329ac573c365a70299c3e34984d103b4d5 (diff)
downloadabslibre-c4723375f4323d47d563413b48072110b9eedd1f.tar.gz
abslibre-c4723375f4323d47d563413b48072110b9eedd1f.tar.bz2
abslibre-c4723375f4323d47d563413b48072110b9eedd1f.zip
Add the current work on [libre/iceweasel-https-everywhere] while we figure out if we want to got the symlink route
-rw-r--r--libre/iceweasel-https-everywhere/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/libre/iceweasel-https-everywhere/PKGBUILD b/libre/iceweasel-https-everywhere/PKGBUILD
new file mode 100644
index 000000000..1f4cf26cd
--- /dev/null
+++ b/libre/iceweasel-https-everywhere/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer (ARCH): Eli Schwartz <eschwartz@archlinux.org>
+# Contributor (ARCH): Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
+# Contributor: Theova <theova@member.fsf.org>
+# Maintainer: Freemor <freemor@freemor.ca>
+
+_pkgname=https-everywhere
+pkgname=iceweasel-${_pkgname}
+pkgver=2019.5.13
+pkgrel=1
+pkgdesc="Plugin for iceweasel which ensures you are using https whenever it's possible."
+arch=('any')
+url="https://www.eff.org/https-everywhere"
+license=('GPL3')
+groups=('iceweasel-addons')
+depends=("iceweasel")
+makedepends=("unzip")
+replaces=(firefox-extensions-${_pkgname})
+source=("${_pkgname}-${pkgver}.xpi::https://www.eff.org/files/https-everywhere-${pkgver}-eff.xpi"
+ "${_pkgname}-${pkgver}.xpi.sig::https://www.eff.org/files/https-everywhere-${pkgver}-eff.xpi.sig")
+noextract=("${_pkgname}-${pkgver}.xpi")
+sha256sums=('e5466df78e3d22c3ae37142d1bd57851427939ec99ea991fa649f68415db1bab'
+ 'SKIP')
+b2sums=('49cfb1ec6128b936608d0eb792a68a4f4146917d011bf798935ba34f9008f87fe5cbee5d30fafa949fe25aaa8879bc8844c747facbf77fbdecbc6edf9cfaf396'
+ 'SKIP')
+validpgpkeys=('1073E74EB38BD6D19476CBF8EA9DBF9FB761A677' # William Budington <bill@eff.org>
+ 'CE340E9D077F1DC0F4FA7B030D16CFA2BA1F7420') # Alexis <alexis@eff.org>
+
+prepare() {
+ cd "$srcdir"
+
+ unzip -qqo "${_pkgname}-${pkgver}.xpi" -d "${_pkgname}-${pkgver}"
+}
+
+package() {
+ cd "${srcdir}"
+
+ if [[ -f ${_pkgname}-${pkgver}/install.rdf ]]; then
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' ${_pkgname}-${pkgver}/install.rdf)"
+ else
+ _extension_id="$(sed -n 's/.*"id": "\(.*\)".*/\1/p' ${_pkgname}-${pkgver}/manifest.json)"
+ fi
+ _extension_dest="${pkgdir}/usr/lib/iceweasel/browser/extensions/${_extension_id}"
+ # Should this extension be unpacked or not?
+ if grep -q '<em:unpack>true</em:unpack>' ${_pkgname}-${pkgver}/install.rdf 2>/dev/null; then
+ install -dm755 "${_extension_dest}"
+ cp -R ${_pkgname}-${pkgver}/* "${_extension_dest}"
+ chmod -R ugo+rX "${_extension_dest}"
+ else
+ install -Dm644 ${_pkgname}-${pkgver}.xpi "${_extension_dest}.xpi"
+ fi
+}