summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2993824df92d9b18d9ab84aee9e0f562a215fe83 (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
# 
# Based on PKGBUILD firefox-extension-shumway and firefox-extension-adblock-plus

_plugin_name=no-coin
pkgname=firefox-extension-${_plugin_name}
pkgdesc="Stop coin miners on the web!"
pkgver=0.4.14
pkgrel=2
arch=('any')
url="https://addons.mozilla.org/firefox/addon/${_plugin_name}/"
makedepends=('unzip' )
depends=("firefox")
license=('MIT/X11 License')
source=("${pkgname}.xpi::https://addons.mozilla.org/firefox/downloads/file/874686/${_plugin_name}-${pkgver}-fx+tb-linux.xpi?src=api" )
md5sums=('a114ed7bfb97629eb92a4a77413e3571')
noextract=("${pkgname}.xpi")

pkgver(){
    unzip -p ${pkgname}.xpi manifest.json | grep -m1 version | awk -F: '{ print $2 }' | sed 's/[", ]//g'
}

package(){
    srcxpi="${srcdir}/${pkgname}.xpi"
    emid=${_plugin_name}
    
    
    install -Dm644 "$srcxpi" "${pkgdir}/usr/lib/firefox/browser/extensions/$emid.xpi"
}