upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / browserpass-firefox / trunk / PKGBUILD
blob457cdb82d615aeff77aa6a15e755037227c00b9d
1 # Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
3 _id=browserpass@maximbaz.com
4 pkgname=browserpass-firefox
5 pkgver=3.7.2
6 pkgrel=2
7 pkgdesc="Firefox extension for Browserpass, browser extension for zx2c4's pass (password manager)"
8 arch=('any')
9 url="https://github.com/browserpass/browserpass-extension"
10 license=('ISC')
11 groups=('firefox-addons')
12 depends=('browserpass')
13 source=("${pkgname}-${pkgver}.xpi::https://addons.mozilla.org/firefox/downloads/file/3711209/browserpass-${pkgver}-fx.xpi"
14         "https://raw.githubusercontent.com/browserpass/browserpass-extension/master/LICENSE")
15 noextract=("${pkgname}-${pkgver}.xpi")
16 sha256sums=('b1781405b46f3274697885b53139264dca2ab56ffc4435c093102ad5ebc59297'
17             '88c5889f0ef1f64a5e08408b51ce47a991087966b1bf127ec0ec39c9d7111f50')
19 package() {
20     install -Dm644 "${pkgname}-${pkgver}.xpi" "${pkgdir}/usr/lib/firefox/browser/extensions/${_id}.xpi"
22     # Install host json from browserpass package
23     install -dm755 "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/"
24     ln -sf "/usr/lib/browserpass/hosts/firefox/com.github.browserpass.native.json" "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/"
26     install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
29 # vim:set ts=4 sw=4 et: