summaryrefslogtreecommitdiff
path: root/libre/icecat-noscript
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-05-25 00:03:14 -0400
committerDavid P <megver83@parabola.nu>2020-05-25 00:03:14 -0400
commit3a6999d4a9f77214911a3912456be6d9716bbfbc (patch)
treee2d812a23a9d9261059b40ac04f65cec91faaaa2 /libre/icecat-noscript
parent78562d9949cecd6d75edb807b707ae432397317c (diff)
downloadabslibre-3a6999d4a9f77214911a3912456be6d9716bbfbc.tar.gz
abslibre-3a6999d4a9f77214911a3912456be6d9716bbfbc.tar.bz2
abslibre-3a6999d4a9f77214911a3912456be6d9716bbfbc.zip
updpkg: libre/icecat-noscript 11.0.26-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre/icecat-noscript')
-rw-r--r--libre/icecat-noscript/PKGBUILD38
1 files changed, 13 insertions, 25 deletions
diff --git a/libre/icecat-noscript/PKGBUILD b/libre/icecat-noscript/PKGBUILD
index fbfbdd735..1e3278922 100644
--- a/libre/icecat-noscript/PKGBUILD
+++ b/libre/icecat-noscript/PKGBUILD
@@ -1,40 +1,28 @@
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer (Arch): Eschwartz <eschwartz93@gmail.com>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
-# Contributor (Arch): Eschwartz <eschwartz93@gmail.com>
pkgname=icecat-noscript
-
-pkgver=5.1.9
+pkgver=11.0.26
pkgrel=1
+_file=3570827
+pkgdesc="Extension for icecat which disables javascript"
arch=(any)
-
-pkgdesc="Extension for icecat which disables script"
url="https://noscript.net/"
license=(GPL2)
-
-depends=(icecat)
-makedepends=(unzip)
groups=(icecat-addons)
-
-source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi)
+depends=('icecat')
+makedepends=(unzip)
+replaces=(firefox-noscript)
+source=("noscript-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/${_file}/")
noextract=("noscript-$pkgver.xpi")
-sha256sums=('00097023e9015986234ad9ad349e64487674794937eec143760ad4d622cf2027')
-
-prepare() {
- unzip -qqo "noscript-$pkgver.xpi" -d "noscript-$pkgver"
-}
+sha256sums=('99a70a78733fe7e21852f67bde090f6a57b5bdbd34ecbbdfcf481dc861965fd8')
+b2sums=('c15ecf1fb41bd2d737fc4d5b7dcc8813041275108436df35fc11270ebed6405fc0cd133e2ff40eb68c6bc44a8840415d80f612966037b844cd5513827a4b7efb')
package() {
- _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' noscript-$pkgver/install.rdf)"
- _extension_dest="$pkgdir/usr/lib/icecat/browser/extensions/$_extension_id"
-
- 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/icecat/browser/extensions/${_extension_id}"
+ install -Dm644 noscript-${pkgver}.xpi "${_extension_dest}.xpi"
}