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

Daniel M. Capella polyzen at archlinux.org
Mon Nov 30 06:24:20 UTC 2020


    Date: Monday, November 30, 2020 @ 06:24:20
  Author: polyzen
Revision: 766536

upgpkg: firefox-ublock-origin 1.31.0-2: Build from source

Modified:
  firefox-ublock-origin/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-30 06:15:56 UTC (rev 766535)
+++ PKGBUILD	2020-11-30 06:24:20 UTC (rev 766536)
@@ -2,19 +2,27 @@
 
 pkgname=firefox-ublock-origin
 pkgver=1.31.0
-pkgrel=1
+_commit=b6b167671ef596dee43349efcd6bf74f96caa220
+pkgrel=2
 pkgdesc='Efficient blocker add-on for various browsers. Fast, potent, and lean'
 arch=('any')
 url=https://github.com/gorhill/uBlock
 license=('GPL3')
 groups=('firefox-addons')
-source=("https://addons.cdn.mozilla.net/user-media/addons/607454/ublock_origin-$pkgver-an+fx.xpi")
-noextract=("${source##*/}")
-sha256sums=('d9eef701b99866565708fe69b5855c1634187630e9e223e810f10e482545e6c0')
-b2sums=('68baf9320844df042d81ca9b96d4e014351d036fd3a098013f791d96ad21750a9d31e44caaacd3ec1f8f2f488177b1c7e18cebfbfd7e147afef0780a770ebb3c')
+makedepends=('git' 'python' 'zip')
+source=("git+$url.git#commit=$_commit?signed"
+        "git+https://github.com/uBlockOrigin/uAssets.git")
+b2sums=('SKIP' 'SKIP')
+validpgpkeys=('603B28AA5D6CD687A554347425E1490B761470C2') # Raymond Hill <rhill at raymondhill.net>
 
+build() {
+  cd uBlock
+  ./tools/make-firefox.sh all
+}
+
 package() {
-  install -Dm644 "${source##*/}" "$pkgdir"/usr/lib/firefox/browser/extensions/uBlock0 at raymondhill.net.xpi
+  cd uBlock/dist/build
+  install -Dm644 uBlock0.firefox.xpi "$pkgdir"/usr/lib/firefox/browser/extensions/uBlock0 at raymondhill.net.xpi
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list