[arch-commits] Commit in firefox-adblock-plus/trunk (PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Wed Nov 15 11:08:49 UTC 2017
Date: Wednesday, November 15, 2017 @ 11:08:48
Author: spupykin
Revision: 266857
upgpkg: firefox-adblock-plus 3.0.1-1
Modified:
firefox-adblock-plus/trunk/PKGBUILD
----------+
PKGBUILD | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-15 09:32:08 UTC (rev 266856)
+++ PKGBUILD 2017-11-15 11:08:48 UTC (rev 266857)
@@ -3,9 +3,9 @@
# Contributor: Eschwartz <eschwartz93 at gmail.com>
pkgname=firefox-adblock-plus
-pkgver=2.9.1
+pkgver=3.0.1
pkgrel=1
-_file=541651
+_file=764081
pkgdesc="Extension for firefox which block ads and banners"
arch=('any')
url="http://adblockplus.org/"
@@ -16,23 +16,11 @@
# https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/versions/
source=("https://addons.mozilla.org/firefox/downloads/file/${_file}/adblock-plus-${pkgver}.xpi")
noextract=("adblock-plus-$pkgver.xpi")
-sha256sums=('2de5616ae0ad17fd6345c6f8f8ec5bd8a8db1bdf8d8dad9995857ad2d6454306')
+sha256sums=('0e9973e14e6a57871e797b72d044e30b252121822e233b73e3087f51a0bc5efc')
-prepare() {
- cd "${srcdir}"
- unzip -qqo "adblock-plus-${pkgver}.xpi" -d "adblock-plus-${pkgver}"
-}
-
package() {
cd "${srcdir}"
-
- _extension_id="$(sed -n '/.*<em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' adblock-plus-${pkgver}/install.rdf)"
+ _extension_id="d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d"
_extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
- if grep '<em:unpack>true</em:unpack>' adblock-plus-${pkgver}/install.rdf > /dev/null; then
- install -dm755 "${_extension_dest}"
- cp -R adblock-plus-${pkgver}/* "${_extension_dest}"
- chmod -R ugo+rX "${_extension_dest}"
- else
- install -Dm644 adblock-plus-${pkgver}.xpi "${_extension_dest}.xpi"
- fi
+ install -Dm644 adblock-plus-${pkgver}.xpi "${_extension_dest}.xpi"
}
More information about the arch-commits
mailing list