summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-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
}