blob: 79e2cc1904a0fb9f161c2794b73eb707366bb9e4 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Co-Maintainer: alphazo <archlinux-1229 at notracking dot email>
pkgname=protonmail-desktop
_pkgver=1.0.1-beta
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Proton official desktop application for Proton Mail and Proton Calendar"
arch=('x86_64')
url="https://proton.me"
license=('unknown')
depends=(
'alsa-lib'
'gtk3'
'libnotify'
'nss'
)
optdepends=(
'kde-cli-tools: file deletion support (kioclient5)'
'pipewire: WebRTC desktop sharing under Wayland'
'trash-cli: file deletion support (trash-put)'
'xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open)'
)
source=("ProtonMail-desktop-${_pkgver}.deb::https://proton.me/download/mail/linux/ProtonMail-desktop-beta.deb")
sha256sums=('7cd2bfff1dc33acca7592906f4dfa7677c236280be46b79a6150ba2840d7878c')
package() {
bsdtar -xvf data.tar.xz -C "$pkgdir/"
# Move main files to proper directory
install -d "$pkgdir/opt/"
mv "$pkgdir"/usr/lib/* "$pkgdir/opt"
# Replace binary symlink
ln -sf /opt/proton-mail/Proton\ Mail\ Beta "$pkgdir/usr/bin/proton-mail"
# Remove unneeded Electron license & lintian folder
rm -rf "$pkgdir"/usr/share/{doc,lintian}
}
|