summaryrefslogtreecommitdiff
path: root/libre/icecat-noscript
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2017-10-25 07:31:18 +0200
committerAndreas Grapentin <andreas@grapentin.org>2017-10-25 07:31:53 +0200
commitee75f0e49a15fd08d90bf3c5ad517598dfd4d41a (patch)
tree8b00ead4589a16aaed6248c36aaa2d5b1d351e02 /libre/icecat-noscript
parenta65dae5da6f1b3947cb7d17be6d447176d27e1b0 (diff)
downloadabslibre-ee75f0e49a15fd08d90bf3c5ad517598dfd4d41a.tar.gz
abslibre-ee75f0e49a15fd08d90bf3c5ad517598dfd4d41a.tar.bz2
abslibre-ee75f0e49a15fd08d90bf3c5ad517598dfd4d41a.zip
libre/icecat-noscript: updated to 5.1.3
Diffstat (limited to 'libre/icecat-noscript')
-rw-r--r--libre/icecat-noscript/PKGBUILD42
1 files changed, 22 insertions, 20 deletions
diff --git a/libre/icecat-noscript/PKGBUILD b/libre/icecat-noscript/PKGBUILD
index 9d859ffa4..08447b114 100644
--- a/libre/icecat-noscript/PKGBUILD
+++ b/libre/icecat-noscript/PKGBUILD
@@ -5,34 +5,36 @@
# Contributor (Arch): Eschwartz <eschwartz93@gmail.com>
pkgname=icecat-noscript
-pkgver=5.1.2
+
+pkgver=5.1.3
pkgrel=1
+arch=(any)
+
pkgdesc="Extension for icecat which disables script"
-arch=('any')
url="https://noscript.net/"
-license=('GPL2')
-groups=('icecat-addons')
-depends=('icecat')
-makedepends=('unzip')
-source=(https://secure.informaction.com/download/releases/noscript-${pkgver}.xpi)
-noextract=("noscript-${pkgver}.xpi")
-sha256sums=('82687646b9ecc39d478ac5d4de035b32fdf88efc6faceec3e74b49c863bbfabb')
+license=(GPL2)
+
+depends=(icecat)
+makedepends=(unzip)
+groups=(icecat-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/icecat/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/icecat/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
}