# 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>

pkgname=iceweasel-noscript
pkgver=11.0.26
pkgrel=1
_file=3570827
pkgdesc="Extension for iceweasel which disables javascript"
arch=(any)
url="https://noscript.net/"
license=(GPL2)
groups=(iceweasel-addons)
depends=('iceweasel')
makedepends=(unzip)
replaces=(firefox-noscript)
source=("noscript-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/${_file}/")
noextract=("noscript-$pkgver.xpi")
sha256sums=('99a70a78733fe7e21852f67bde090f6a57b5bdbd34ecbbdfcf481dc861965fd8')
b2sums=('c15ecf1fb41bd2d737fc4d5b7dcc8813041275108436df35fc11270ebed6405fc0cd133e2ff40eb68c6bc44a8840415d80f612966037b844cd5513827a4b7efb')

package() {
  _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"
}
