makedeb


webext-noscript-security-suite-firefox 11.4.29-0


Selectively disable javascript on Firefox.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for webext-noscript-security-suite-firefox.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# If your Firefox version doesn't support extracted webextentions
#_UNCOMPRESS=0
pkgname=webext-noscript-security-suite-firefox
_download_name="noscript"
pkgver=11.4.29
_fileid=('4206186')
pkgrel=0
pkgdesc='Selectively disable javascript on Firefox.'
arch=('all')
url='https://addons.mozilla.org/en-US/firefox/addon/noscript/'
license=('GPL2')
optmakedepends=("unzip: to uncompress the webextention")
optdepends=('firefox' 'firefox-esr')
source=("https://addons.mozilla.org/firefox/downloads/file/$_fileid/noscript-${pkgver}.xpi")
noextract=("${_download_name}-${pkgver}.xpi")
options=('!strip')
b2sums=('409947675258d95961b6c4368cc449fd81c6281e4b2bb73e916fd1cc53a26f2681085f500510dffa75774e921da2d8cc9e255e13071933a8369fed427982daee')

prepare() {
 [ -z "$_UNCOMPRESS" ] && unzip -u "$_download_name-${pkgver}.xpi" -d "${srcdir}/$pkgname-${pkgver}" || :
}

package() {
  _mozilla_id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
  _ext_id="{73a6fe31-595d-460b-a920-fcc0f8843232}"
  _license_path="/usr/share/common-licenses/GPL-2"

  install -dm755 "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id"
  if [ -z "$_UNCOMPRESS" ];
  then
    mv "${srcdir}/$pkgname-${pkgver}" "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id/$_ext_id"
  else
    install -Dm644 "$_download_name-${pkgver}.xpi" "${pkgdir}/usr/share/mozilla/extensions/$_mozilla_id/$_ext_id.xpi"
  fi
  # Doc
  install -dm755 "${pkgdir}/usr/share/doc/$pkgname"
  ln -s "$_license_path" "${pkgdir}/usr/share/doc/$pkgname/"
}