makedeb
Selectively disable javascript on Firefox.
Viewing /PKGBUILD
.
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.42
_fileid=('4363712')
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=('96ed23ccfaedd89d55161f3b645c48d07abc6dfb681c789d043be8fd2d0ab04aa2b7d732f3ef96e97a901bd5eaa87c4f00aac1125c66d8950717dd671adaf71b')
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/"
}