blob: 2e90cdc9572757767f6a123d527ddb927f94e321 (
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
|
# Maintainer:
# Contributor: Paragoumba <aur at paragoumba dot fr>
# Contributor: Renaud Littolff <rlittolff@gmail.com>
pkgname=proton-pass
pkgver=1.26.0
_pkgver="${pkgver}-rc9"
pkgrel=2
pkgdesc="Open-source and secure identity manager"
arch=('x86_64')
url="https://proton.me/pass"
license=('GPL-3.0-or-later')
_electron=electron33
depends=('alsa-lib'
'at-spi2-core'
'cairo'
'dbus'
"${_electron}"
'expat'
'gcc-libs'
'glib2'
'glibc'
'gtk3'
'libcups'
'libdrm'
'libx11'
'libxcb'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'mesa'
'nspr'
'nss'
'pango'
'systemd-libs')
makedepends=('gendesk' 'npm' 'rustup' 'yarn')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ProtonMail/WebClients/archive/refs/tags/${pkgname}@${_pkgver}.tar.gz")
sha256sums=('34d6f5f76120a76e3c288beb38782d9f5d0dbbf385059f7544cccf013a852292')
prepare() {
cd "WebClients-${pkgname}-${_pkgver}/applications/pass-desktop"
gendesk -f -n \
--pkgname "${pkgname}" \
--pkgdesc "${pkgdesc}" \
--name 'Proton Pass' \
--genericname 'Password Manager' \
--categories 'Utility'
sed "s/process.resourcesPath/path.dirname(app.getAppPath())/" -i src/main.ts
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
yarn install
rustup default stable
}
build() {
cd "WebClients-${pkgname}-${_pkgver}/applications/pass-desktop"
yarn run build:desktop
}
package() {
cd "WebClients-${pkgname}-${_pkgver}/applications/pass-desktop"
install -d "${pkgdir}/opt/${pkgname}"
cp -r "out/Proton Pass-linux-x64/"* "${pkgdir}/opt/${pkgname}"
install -d "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/Proton Pass" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 assets/logo.svg "${pkgdir}/usr/share/pixmaps/${pkgname}.svg"
install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}
|