makedeb


webext-noscript-security-suite-firefox 11.5.2-0


Selectively disable javascript on Firefox.

Click here to go back to the commit logs for webext-noscript-security-suite-firefox.

Commit:


Hash: 7d54901a3e867307a50807f3281eb46e56786cac

Message: 11.5.0

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 0cd937a..78c0c3a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,17 +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.42
+pkgver = 11.5.0
 url = https://addons.mozilla.org/en-US/firefox/addon/noscript/
 arch = all
 license = GPL2
-noextract = noscript-11.4.42.xpi
+noextract = noscript-11.5.0.xpi
 optdepends = firefox
 optdepends = firefox-esr
 options = !strip
-source = https://addons.mozilla.org/firefox/downloads/file/4363712/noscript-11.4.42.xpi
-b2sums = 96ed23ccfaedd89d55161f3b645c48d07abc6dfb681c789d043be8fd2d0ab04aa2b7d732f3ef96e97a901bd5eaa87c4f00aac1125c66d8950717dd671adaf71b
+source = https://addons.mozilla.org/firefox/downloads/file/4377088/noscript-11.5.0.xpi
+b2sums = e91ec346fcefe725bdf2791b742ac717060f88deaf71f4cc51e073fbaea74e0dbc34cbc66879eddebdb99c2291663fa5efc659d65d58f67543f0ff4bb5aec96b
 optdepends = firefox
 optdepends = firefox-esr
-optmakedepends = unzip: to uncompress the webextention
-optmakedepends = unzip: to uncompress the webextention
diff --git a/PKGBUILD b/PKGBUILD
index 87aa0ed..759539b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,28 @@
 #_UNCOMPRESS=0
 pkgname=webext-noscript-security-suite-firefox
 _download_name="noscript"
-pkgver=11.4.42
-_fileid=('4363712')
+pkgver=11.5.0
+_fileid=('4377088')
 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')
+b2sums=('e91ec346fcefe725bdf2791b742ac717060f88deaf71f4cc51e073fbaea74e0dbc34cbc66879eddebdb99c2291663fa5efc659d65d58f67543f0ff4bb5aec96b')
 
 prepare() {
- [ -z "$_UNCOMPRESS" ] && unzip -u "$_download_name-${pkgver}.xpi" -d "${srcdir}/$pkgname-${pkgver}" || :
+  if [ -z "$_UNCOMPRESS" ];
+  then
+    # clean
+    rm -Rf "${pkgname}-${pkgver}"
+    # extract
+    install -dm755 "${srcdir}/$pkgname-${pkgver}"
+    bsdtar -xf "$_download_name-${pkgver}.xpi" -C "${srcdir}/$pkgname-${pkgver}"
+  fi
 }
 
 package() {