blob: bc4c4f541573ae86abebb5a3cd0facc93661b21f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Dct Mei <dctxmei@yandex.com>
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
pkgname=firefox-esr-ublock-origin
_pkgname=uBlock
pkgver=1.58.0
pkgrel=1
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')
depends=('firefox-esr')
makedepends=('git' 'npm' 'python' 'strip-nondeterminism' 'zip')
source=("git+$url.git#commit=$pkgver?signed"
"git+https://github.com/uBlockOrigin/uAssets.git")
b2sums=('87e625a745b7853da449eb5a127a46bdbd153af00f099c93ed6681abc7a8fd3f6ae2e84474dedc1becad30b43a5da8490ce21e2ebca4b03bff31165d19240af8'
'SKIP')
validpgpkeys=('603B28AA5D6CD687A554347425E1490B761470C2') # Raymond Hill <rhill@raymondhill.net>
prepare() {
cd "${srcdir}"/"${_pkgname}"/
git submodule init
git config submodule.submodules/uAssets.url ../uAssets
git submodule update
}
build() {
cd "${srcdir}"/"${_pkgname}"/
make
strip-nondeterminism -t zip dist/build/uBlock0.firefox.xpi
}
check() {
cd "${srcdir}"/"${_pkgname}"/
make test
}
package() {
cd "${srcdir}"/"${_pkgname}"/dist/build/
install -Dm 644 uBlock0.firefox.xpi \
"$pkgdir"/usr/lib/firefox-esr/browser/extensions/uBlock0@raymondhill.net.xpi
}
|