From a65dae5da6f1b3947cb7d17be6d447176d27e1b0 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Wed, 25 Oct 2017 07:31:03 +0200 Subject: libre/iceweasel-noscript: updated to 5.1.3 --- libre/iceweasel-noscript/PKGBUILD | 44 ++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'libre/iceweasel-noscript/PKGBUILD') 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 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>.*/{s//\1/p;q}' noscript-${pkgver}/install.rdf)" - _extension_dest="${pkgdir}/usr/lib/iceweasel/browser/extensions/${_extension_id}" - if grep 'true' 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>.*/{s//\1/p;q}' noscript-$pkgver/install.rdf)" + _extension_dest="$pkgdir/usr/lib/iceweasel/browser/extensions/$_extension_id" + + if grep 'true' 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 } -- cgit v1.2.3