[arch-commits] Commit in firefox-decentraleyes/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Mon Nov 30 08:58:01 UTC 2020


    Date: Monday, November 30, 2020 @ 08:58:01
  Author: polyzen
Revision: 766540

upgpkg: firefox-decentraleyes 2.0.15-2: Build from source and add check()

Modified:
  firefox-decentraleyes/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-30 08:02:48 UTC (rev 766539)
+++ PKGBUILD	2020-11-30 08:58:01 UTC (rev 766540)
@@ -2,18 +2,28 @@
 
 pkgname=firefox-decentraleyes
 pkgver=2.0.15
-pkgrel=1
+_commit=bcd62f75b346f838200cf29037cb5429620797a5
+pkgrel=2
 pkgdesc='Local emulation of Content Delivery Networks'
 url=https://decentraleyes.org/
 arch=('any')
 license=('MPL2')
 groups=('firefox-addons')
-source=("https://addons.cdn.mozilla.net/user-media/addons/521554/decentraleyes-$pkgver-an+fx.xpi")
-noextract=("${source##*/}")
-sha256sums=('2554069168458cc1351e5d37ee995de044e514ec72369829ff0bcbf31d586ddf')
+makedepends=('git' 'npm' 'zip')
+source=("git+https://git.synz.io/Synzvato/decentraleyes.git#commit=$_commit?signed")
+b2sums=('SKIP')
+validpgpkeys=('A6B7BA10893FE67EE17A9F8FCECC45E1E979013C') # Thomas Rientjes <synzvato at protonmail.com>
 
+check() {
+  cd decentraleyes/audit
+  npm install
+  node run
+}
+
 package() {
-  install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/jid1-BoFifL9Vbdl2zQ at jetpack.xpi
+  cd decentraleyes
+  install -d "$pkgdir"/usr/lib/firefox/browser/extensions
+  zip -r "$pkgdir"/usr/lib/firefox/browser/extensions/jid1-BoFifL9Vbdl2zQ at jetpack.xpi * -x '.git*' 'audit/*' crowdin.yaml
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list