[arch-commits] Commit in firefox-noscript/repos/community-any (PKGBUILD PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Mon Dec 21 19:35:18 UTC 2015


    Date: Monday, December 21, 2015 @ 20:35:17
  Author: spupykin
Revision: 154067

archrelease: copy trunk to community-any

Added:
  firefox-noscript/repos/community-any/PKGBUILD
    (from rev 154066, firefox-noscript/trunk/PKGBUILD)
Deleted:
  firefox-noscript/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   61 ++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 36 insertions(+), 25 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-21 19:35:08 UTC (rev 154066)
+++ PKGBUILD	2015-12-21 19:35:17 UTC (rev 154067)
@@ -1,25 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=firefox-noscript
-pkgver=2.7
-pkgrel=1
-pkgdesc="Extension for firefox which disables script"
-arch=('any')
-url="http://noscript.net/"
-license=('GPL2')
-depends=()
-makedepends=('unzip')
-source=(https://secure.informaction.com/download/releases/noscript-$pkgver.xpi)
-md5sums=('25fd6771919ae72f525f3b89cfa70b05')
-
-package() {
-  depends=("firefox")
-
-  cd $srcdir
-  local emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' install.rdf)
-  local dstdir=$pkgdir/usr/lib/firefox/browser/extensions/${emid}
-  install -d $dstdir
-  cp -R * $dstdir
-  rm $dstdir/noscript-$pkgver.xpi
-}

Copied: firefox-noscript/repos/community-any/PKGBUILD (from rev 154066, firefox-noscript/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-12-21 19:35:17 UTC (rev 154067)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Eschwartz <eschwartz93 at gmail.com>
+
+pkgname=firefox-noscript
+pkgver=2.7
+pkgrel=2
+pkgdesc="Extension for firefox which disables script"
+arch=('any')
+url="http://noscript.net/"
+license=('GPL2')
+groups=('firefox-addons')
+depends=('firefox')
+makedepends=('unzip')
+source=(https://secure.informaction.com/download/releases/noscript-${pkgver}.xpi)
+noextract=("noscript-${pkgver}.xpi")
+md5sums=('25fd6771919ae72f525f3b89cfa70b05')
+
+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/firefox/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
+}



More information about the arch-commits mailing list