summaryrefslogtreecommitdiff
path: root/libre/icecat-noscript
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 01:14:18 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 01:20:18 -0300
commitd671d5690819fe1d94027d14abf658dd61ea9bc1 (patch)
treee525a8cdb1b50a3b0d6aca6f7350d6f51b441ef2 /libre/icecat-noscript
parentd30022f4d8b44d727ce915c11cb421858ffd6d61 (diff)
downloadabslibre-d671d5690819fe1d94027d14abf658dd61ea9bc1.tar.gz
abslibre-d671d5690819fe1d94027d14abf658dd61ea9bc1.tar.bz2
abslibre-d671d5690819fe1d94027d14abf658dd61ea9bc1.zip
icecat-*: move packages to [libre] -> https://savannah.gnu.org/forum/forum.php?forum_id=8747
Diffstat (limited to 'libre/icecat-noscript')
-rw-r--r--libre/icecat-noscript/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/icecat-noscript/PKGBUILD b/libre/icecat-noscript/PKGBUILD
new file mode 100644
index 000000000..230e0ba62
--- /dev/null
+++ b/libre/icecat-noscript/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 186197 2016-08-09 13:37:12Z spupykin $
+# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor (Arch): Eschwartz <eschwartz93@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=icecat-noscript
+pkgver=2.9.5.2
+pkgrel=1
+pkgdesc="Extension for icecat which disables script"
+arch=('any')
+url="http://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")
+sha512sums=('39f081c644b66d64fd1e8333b0dccce1ac2c7ee3877c274a9a49fa6fa074f89731ae0246c9578e87988a48f92c9076fb4617c7980fc656c4125cff7aa9b67622')
+whirlpoolsums=('59da8a7de4373b5eadfcdf48134394d3c21adcbc617a804bd675ae64894eb056377964ebad94cf97ff1122d716f99a01985c14f5b0e61980a877b286eee86b27')
+
+prepare() {
+ cd "${srcdir}"
+ 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}"
+ else
+ install -Dm644 noscript-${pkgver}.xpi "${_extension_dest}.xpi"
+ fi
+}