[arch-commits] Commit in (2 files)

Sergej Pupykin spupykin at gemini.archlinux.org
Fri Aug 13 14:18:05 UTC 2021


    Date: Friday, August 13, 2021 @ 14:18:04
  Author: spupykin
Revision: 998009

check manifest version

Modified:
  firefox-adblock-plus/trunk/PKGBUILD
  firefox-noscript/trunk/PKGBUILD

-------------------------------------+
 firefox-adblock-plus/trunk/PKGBUILD |    6 ++++++
 firefox-noscript/trunk/PKGBUILD     |    6 ++++++
 2 files changed, 12 insertions(+)

Modified: firefox-adblock-plus/trunk/PKGBUILD
===================================================================
--- firefox-adblock-plus/trunk/PKGBUILD	2021-08-13 14:06:59 UTC (rev 998008)
+++ firefox-adblock-plus/trunk/PKGBUILD	2021-08-13 14:18:04 UTC (rev 998009)
@@ -9,6 +9,7 @@
 arch=('any')
 url="https://adblockplus.org/"
 license=('GPL3')
+makedepends=('unzip' 'jq')
 groups=('firefox-addons')
 # https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/versions/
 source=("https://addons.mozilla.org/firefox/downloads/file/${_file}/adblock-plus-${pkgver}.xpi")
@@ -15,6 +16,11 @@
 noextract=("adblock-plus-$pkgver.xpi")
 sha256sums=('9d12bfa4608213455538d6cd28d0ad61a64d5ba83c40a0b273156f7a8899f6ca')
 
+check() {
+  unzip adblock-plus-$pkgver.xpi manifest.json
+  jq '.version' manifest.json | grep -E '^"'$pkgver'"$'
+}
+
 package() {
   depends=("firefox")
 

Modified: firefox-noscript/trunk/PKGBUILD
===================================================================
--- firefox-noscript/trunk/PKGBUILD	2021-08-13 14:06:59 UTC (rev 998008)
+++ firefox-noscript/trunk/PKGBUILD	2021-08-13 14:18:04 UTC (rev 998009)
@@ -9,6 +9,7 @@
 arch=('any')
 url="https://noscript.net/"
 license=('GPL2')
+makedepends=('unzip' 'jq')
 groups=('firefox-addons')
 makedepends=('unzip')
 source=("noscript-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/${_file}/")
@@ -16,6 +17,11 @@
 sha256sums=('b833e81823986646dbc473ebbee987bd47757fbe79c9d1720150f08ba6ca9ba9')
 b2sums=('b2b91c0fdc4bc4ea29ff47f1801e06ec504948171d78b2bce8b387508e6d15dac5bf9f46d62e6ab74e19b233c186406e89df944cfd50e9ede357c28b44fd6ad1')
 
+check() {
+  unzip noscript-$pkgver.xpi manifest.json
+  jq '.version' manifest.json | grep -E '^"'$pkgver'"$'
+}
+
 package() {
   depends=('firefox')
   _extension_id="{73a6fe31-595d-460b-a920-fcc0f8843232}"



More information about the arch-commits mailing list