blob: fb270e5910c52731e5e6c9142c68485ad3cecdf1 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: David Hummel <david dot hummel at gmail point com>
pkgbase=extension-bitwarden-git
pkgname=('brave-extension-bitwarden-git' 'chrome-extension-bitwarden-git' 'chromium-extension-bitwarden-git' 'firefox-extension-bitwarden-git' 'librewolf-extension-bitwarden-git')
pkgver=2023.7.1.r12967.gfb74c2d
pkgrel=1
pkgdesc='Bitwarden browser extensions'
arch=('any')
url='https://github.com/bitwarden/clients'
license=('GPL3')
makedepends=('git' 'nodejs' 'npm' 'unzip')
source=('git+https://github.com/bitwarden/clients.git')
sha256sums=('SKIP')
pkgver() {
cd clients || exit
printf "%s.%s" "$(git tag | grep '^browser' | tail -n1 | cut -d- -f2 | cut -dv -f2)" "$(git describe --long --abbrev=7 | cut -d- -f2- | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
prepare() {
cd clients || exit
npm ci
}
build() {
cd clients/apps/browser || exit
npm run dist:chrome dist:firefox
}
check() {
cd clients/apps/browser || exit
npm run test
}
package_brave-extension-bitwarden-git() {
conflicts=('brave-extension-bitwarden')
depends=('brave')
install="${pkgname}.install"
pkgdesc='Bitwarden browser extension for Brave'
provides=('brave-extension-bitwarden')
install -dm755 "${pkgdir}/usr/share/${pkgname}"
unzip -qq clients/apps/browser/dist/dist-chrome.zip -d "${pkgdir}/usr/share/${pkgname}"
}
package_chrome-extension-bitwarden-git() {
conflicts=('chrome-extension-bitwarden')
depends=('google-chrome')
install="${pkgname}.install"
pkgdesc='Bitwarden browser extension for Chrome'
provides=('chrome-extension-bitwarden')
install -dm755 "${pkgdir}/usr/share/${pkgname}"
unzip -qq clients/apps/browser/dist/dist-chrome.zip -d "${pkgdir}/usr/share/${pkgname}"
}
package_chromium-extension-bitwarden-git() {
conflicts=('chromium-extension-bitwarden')
depends=('chromium')
install="${pkgname}.install"
pkgdesc='Bitwarden browser extension for Chromium'
provides=('chromium-extension-bitwarden')
install -dm755 "${pkgdir}/usr/share/${pkgname}"
unzip -qq clients/apps/browser/dist/dist-chrome.zip -d "${pkgdir}/usr/share/${pkgname}"
}
package_firefox-extension-bitwarden-git() {
conflicts=('firefox-extension-bitwarden')
depends=('firefox')
groups=('firefox-addons')
pkgdesc='Bitwarden browser extension for Firefox'
provides=('firefox-extension-bitwarden')
install -Dm644 clients/apps/browser/dist/dist-firefox.zip "${pkgdir}/usr/lib/firefox/browser/extensions/{446900e4-71c2-419f-a6a7-df9c091e268b}.xpi"
}
package_librewolf-extension-bitwarden-git() {
conflicts=('librewolf-extension-bitwarden')
depends=('librewolf')
pkgdesc='Bitwarden browser extension for LibreWolf'
provides=('librewolf-extension-bitwarden')
install -Dm644 clients/apps/browser/dist/dist-firefox.zip "${pkgdir}/usr/lib/librewolf/browser/extensions/{446900e4-71c2-419f-a6a7-df9c091e268b}.xpi"
}
|