summaryrefslogtreecommitdiff
path: root/libre/iceweasel-noscript
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2017-10-25 07:31:03 +0200
committerAndreas Grapentin <andreas@grapentin.org>2017-10-25 07:31:52 +0200
commita65dae5da6f1b3947cb7d17be6d447176d27e1b0 (patch)
tree6ce3337a6a244296b8e93d8e321a0a719b63a9fa /libre/iceweasel-noscript
parenta6ef394e5fa1ed35220e939069238fbea1815d84 (diff)
downloadabslibre-a65dae5da6f1b3947cb7d17be6d447176d27e1b0.tar.gz
abslibre-a65dae5da6f1b3947cb7d17be6d447176d27e1b0.tar.bz2
abslibre-a65dae5da6f1b3947cb7d17be6d447176d27e1b0.zip
libre/iceweasel-noscript: updated to 5.1.3
Diffstat (limited to 'libre/iceweasel-noscript')
-rw-r--r--libre/iceweasel-noscript/PKGBUILD44
1 files changed, 23 insertions, 21 deletions
diff --git a/libre/iceweasel-noscript/PKGBUILD b/libre/iceweasel-noscript/PKGBUILD
index 6e1f72f14..039854d11 100644
--- a/libre/iceweasel-noscript/PKGBUILD
+++ b/libre/iceweasel-noscript/PKGBUILD
@@ -5,35 +5,37 @@
# Contributor (Arch): Eschwartz <eschwartz93@gmail.com>
pkgname=iceweasel-noscript
-pkgver=5.1.2
+
+pkgver=5.1.3
pkgrel=1
+arch=(any)
+
pkgdesc="Extension for iceweasel which disables script"
-arch=('any')
url="https://noscript.net/"
-license=('GPL2')
-groups=('iceweasel-addons')
-depends=('iceweasel')
-makedepends=('unzip')
-replaces=('firefox-noscript')
-source=(https://secure.informaction.com/download/releases/noscript-${pkgver}.xpi)
-noextract=("noscript-${pkgver}.xpi")
-sha256sums=('82687646b9ecc39d478ac5d4de035b32fdf88efc6faceec3e74b49c863bbfabb')
+license=(GPL2)
+
+depends=(iceweasel)
+makedepends=(unzip)
+replaces=(firefox-noscript)
+groups=(iceweasel-addons)
+
+source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi)
+noextract=("noscript-$pkgver.xpi")
+sha256sums=('3ad5e83f8a85ff8991b0a9d36095082c223bc7bd7df482824f3d7b02ea7b6f17')
prepare() {
- cd "${srcdir}"
- unzip -qqo "noscript-${pkgver}.xpi" -d "noscript-${pkgver}"
+ unzip -qqo "noscript-$pkgver.xpi" -d "noscript-$pkgver"
}
package() {
- cd "${srcdir}"
-
- _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' noscript-${pkgver}/install.rdf)"
- _extension_dest="${pkgdir}/usr/lib/iceweasel/browser/extensions/${_extension_id}"
- if grep '<em:unpack>true</em:unpack>' noscript-${pkgver}/install.rdf > /dev/null; then
- install -dm755 "${_extension_dest}"
- cp -R noscript-${pkgver}/* "${_extension_dest}"
- chmod -R ugo+rX "${_extension_dest}"
+ _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' noscript-$pkgver/install.rdf)"
+ _extension_dest="$pkgdir/usr/lib/iceweasel/browser/extensions/$_extension_id"
+
+ if grep '<em:unpack>true</em:unpack>' noscript-$pkgver/install.rdf > /dev/null; then
+ install -dm755 "$_extension_dest"
+ cp -R noscript-$pkgver/* "$_extension_dest"
+ chmod -R ugo+rX "$_extension_dest"
else
- install -Dm644 noscript-${pkgver}.xpi "${_extension_dest}.xpi"
+ install -Dm644 noscript-$pkgver.xpi "$_extension_dest.xpi"
fi
}