summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-05-25 00:04:40 -0400
committerDavid P <megver83@parabola.nu>2020-05-25 00:04:40 -0400
commit93fb1c91978c907c0547683be85a0353f8269444 (patch)
treef76ad09119dfd014137133b6ba0d6fc096f946cb
parent3a6999d4a9f77214911a3912456be6d9716bbfbc (diff)
downloadabslibre-93fb1c91978c907c0547683be85a0353f8269444.tar.gz
abslibre-93fb1c91978c907c0547683be85a0353f8269444.tar.bz2
abslibre-93fb1c91978c907c0547683be85a0353f8269444.zip
updpkg: libre/iceweasel-noscript 11.0.26-1
Signed-off-by: David P <megver83@parabola.nu>
-rw-r--r--libre/iceweasel-noscript/PKGBUILD42
1 files changed, 13 insertions, 29 deletions
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 <andreas@grapentin.org>
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer (Arch): Eli schwartz <eschwartz@archlinux.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
-# Contributor (Arch): Eschwartz <eschwartz93@gmail.com>
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 '<em:unpack>true</em:unpack>' 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"
}