blob: b593d74a3cc10218a207aee0ea27dfec641c52a8 (
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
|
# Maintainer: Matt Harrison <matt@harrison.us.com>
# Contributor: David Hummel <hummeltech@sherpaguru.com>
# Maintained at: https://github.com/matt-h/aur-pkgbuilds or https://codeberg.org/matt/aur-pkgbuilds
pkgname=firefox-extension-bitwarden
pkgver=2024.11.1
pkgrel=1
pkgdesc='Bitwarden browser extension for Firefox'
arch=('any')
url='https://github.com/bitwarden/clients'
license=('GPL-3.0-or-later')
optdepends=('firefox')
groups=('firefox-addons')
pkgdesc='Bitwarden browser extension for Firefox'
makedepends=('nodejs' 'npm' 'unzip')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bitwarden/clients/archive/refs/tags/browser-v${pkgver}.tar.gz")
sha256sums=('7f44c5ac815d64d1d1f43ed6500cea0d34f067def5405bceb8e2faa28a8a291b')
prepare() {
cd "${srcdir}/clients-browser-v${pkgver}" || exit
npm ci
}
build() {
cd "${srcdir}/clients-browser-v${pkgver}/apps/browser" || exit
npm run dist:firefox
}
check() {
cd "${srcdir}/clients-browser-v${pkgver}/apps/browser" || exit
npm run test
}
package() {
install -Dm644 "${srcdir}/clients-browser-v${pkgver}/apps/browser/dist/dist-firefox.zip" "${pkgdir}/usr/lib/firefox/browser/extensions/{446900e4-71c2-419f-a6a7-df9c091e268b}.xpi"
}
|