makedeb
Selectively disable javascript on Firefox.
Click here to go back to the commit logs for webext-noscript-security-suite-firefox.
Hash: 3a4de4a43dae5a00bd87814ff1b91bd633c55397
Message: 11.4.26 and unpack xpi
diff --git a/.SRCINFO b/.SRCINFO
index 6de5e73..ab341e0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,15 @@ pkgname = webext-noscript-security-suite-firefox
pkgbase = webext-noscript-security-suite-firefox
pkgdesc = Selectively disable javascript on Firefox.
pkgrel = 0
-pkgver = 11.4.25
+pkgver = 11.4.26
url = https://addons.mozilla.org/en-US/firefox/addon/noscript/
arch = all
license = GPL2
-noextract = noscript-11.4.25.xpi
+makedepends = unzip
+noextract = noscript-11.4.26.xpi
optdepends = firefox
-source = https://addons.mozilla.org/firefox/downloads/file/4136347/noscript-11.4.25.xpi
+options = !strip
+source = https://addons.mozilla.org/firefox/downloads/file/4136347/noscript-11.4.26.xpi
b2sums = 1c1b87828cf224a476e55f3ea8c1156ddd363d19b1287dfcd05b75acb7563ac5a67a440887a4a4fa2129bb0b0c37241ba2951b024b1a75c27bac64dbc87c123a
+makedepends = unzip
optdepends = firefox
diff --git a/PKGBUILD b/PKGBUILD
index 65e0061..6620669 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,25 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
pkgname=webext-noscript-security-suite-firefox
-pkgver=11.4.25
+pkgver=11.4.26
pkgrel=0
pkgdesc='Selectively disable javascript on Firefox.'
arch=('all')
url='https://addons.mozilla.org/en-US/firefox/addon/noscript/'
license=('GPL2')
+makedepends=("unzip")
optdepends=('firefox')
source=("https://addons.mozilla.org/firefox/downloads/file/4136347/noscript-${pkgver}.xpi")
noextract=("noscript-${pkgver}.xpi")
+options=('!strip')
b2sums=('1c1b87828cf224a476e55f3ea8c1156ddd363d19b1287dfcd05b75acb7563ac5a67a440887a4a4fa2129bb0b0c37241ba2951b024b1a75c27bac64dbc87c123a')
package() {
- install -Dm644 "noscript-${pkgver}.xpi" "${pkgdir}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
+ mozilla_id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
+ download_name="noscript"
+ ext_id="{73a6fe31-595d-460b-a920-fcc0f8843232}"
+ license_path="/usr/share/common-licenses/GPL-2"
+ install -dm755 "${pkgdir}/usr/share/mozilla/extensions/$mozilla_id"
+ unzip "$download_name-${pkgver}.xpi" -d "${pkgdir}/usr/share/mozilla/extensions/$mozilla_id/$ext_id"
+ install -dm755 "${pkgdir}/usr/share/doc/$pkgname"
+ ln -s "$license_path" "${pkgdir}/usr/share/doc/$pkgname/"
}