blob: 67960f14582bb255c19b625f7e11c9f16d441cc8 (
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
|
# Maintainer: Dct Mei <dctxmei@yandex.com>
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
pkgname=firefox-esr-decentraleyes
_pkgname=decentraleyes
pkgver=2.0.18
pkgrel=1
pkgdesc='Local emulation of Content Delivery Networks'
arch=('any')
url="https://git.synz.io/Synzvato/decentraleyes"
license=('MPL2')
#groups=('firefox-addons')
depends=('firefox-esr')
makedepends=('git' 'nodejs' 'strip-nondeterminism' 'yarn' 'zip')
source=("git+${url}.git#tag=v${pkgver}")
b2sums=('SKIP')
build() {
cd "${srcdir}"/"${_pkgname}"/audit/
yarn install
node run
}
package() {
cd "${srcdir}"/"${_pkgname}"/
install -d "${pkgdir}"/usr/lib/firefox-esr/browser/extensions
zip -r \
"${pkgdir}"/usr/lib/firefox-esr/browser/extensions/jid1-BoFifL9Vbdl2zQ@jetpack.xpi \
* -x '.git*' 'audit/*' crowdin.yaml
strip-nondeterminism -t zip "${pkgdir}"/usr/lib/firefox-esr/browser/extensions/*.xpi
}
|