From 93fb1c91978c907c0547683be85a0353f8269444 Mon Sep 17 00:00:00 2001 From: David P Date: Mon, 25 May 2020 00:04:40 -0400 Subject: updpkg: libre/iceweasel-noscript 11.0.26-1 Signed-off-by: David P --- libre/iceweasel-noscript/PKGBUILD | 42 ++++++++++++--------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'libre/iceweasel-noscript') diff --git a/libre/iceweasel-noscript/PKGBUILD b/libre/iceweasel-noscript/PKGBUILD index a5ec282b6..7d64d64c4 100644 --- a/libre/iceweasel-noscript/PKGBUILD +++ b/libre/iceweasel-noscript/PKGBUILD @@ -1,44 +1,28 @@ # Maintainer: Andreas Grapentin # Maintainer (Arch): Sergej Pupykin +# Maintainer (Arch): Eli schwartz # Contributor: André Silva # Contributor: jc_gargma -# Contributor (Arch): Eschwartz pkgname=iceweasel-noscript - -pkgver=10.1.6.2 +pkgver=11.0.26 pkgrel=1 +_file=3570827 +pkgdesc="Extension for iceweasel which disables javascript" arch=(any) - -pkgdesc="Extension for iceweasel which disables script" url="https://noscript.net/" -license=(GPL) - -depends=(iceweasel) +license=(GPL2) +groups=(iceweasel-addons) +depends=('iceweasel') makedepends=(unzip) replaces=(firefox-noscript) -groups=(iceweasel-addons) - -source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi) +source=("noscript-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/${_file}/") noextract=("noscript-$pkgver.xpi") -sha256sums=('657d8ebff32415adb1a2d72cd0f7db5dabe8a32900d7c2f911a840548d31d37b') - -prepare() { - unzip -qqo "noscript-$pkgver.xpi" -d "noscript-$pkgver" -} +sha256sums=('99a70a78733fe7e21852f67bde090f6a57b5bdbd34ecbbdfcf481dc861965fd8') +b2sums=('c15ecf1fb41bd2d737fc4d5b7dcc8813041275108436df35fc11270ebed6405fc0cd133e2ff40eb68c6bc44a8840415d80f612966037b844cd5513827a4b7efb') package() { - _extension_id="$(sed -n '/.*"id": *"\(.*\)".*/{s//\1/p;q}' noscript-$pkgver/manifest.json)" - _extension_dest="$pkgdir/usr/lib/iceweasel/browser/extensions/$_extension_id" - - # _extension_id must not be empty - [ -n "$_extension_id" ] || (echo "error extracting extension_id" >&2 && exit 1) - - if grep 'true' noscript-$pkgver/install.rdf > /dev/null; then - install -dm755 "$_extension_dest" - cp -R noscript-$pkgver/* "$_extension_dest" - chmod -R ugo+rX "$_extension_dest" - else - install -Dm644 noscript-$pkgver.xpi "$_extension_dest.xpi" - fi + _extension_id="{73a6fe31-595d-460b-a920-fcc0f8843232}" + _extension_dest="${pkgdir}/usr/lib/iceweasel/browser/extensions/${_extension_id}" + install -Dm644 noscript-${pkgver}.xpi "${_extension_dest}.xpi" } -- cgit v1.2.3