blob: d40165be07ed26fe81c5bebc36a9456976bdec9d (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=proton-mail-bin
pkgver=1.4.0
pkgrel=1
pkgdesc="Proton official desktop application for Proton Mail and Proton Calendar"
arch=('x86_64')
url="https://proton.me"
license=('GPL-3.0-or-later')
depends=(
'alsa-lib'
'gtk3'
'gvfs'
'libdrm'
'libnotify'
'nss'
'xdg-utils'
)
optdepends=(
'kde-cli-tools: file deletion support (kioclient5)'
'libgnome-keyring'
'lsb-release'
'trash-cli: file deletion support (trash-put)'
)
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}" 'protonmail-desktop')
source=("ProtonMail-desktop-beta-$pkgver.deb::https://proton.me/download/mail/linux/$pkgver/ProtonMail-desktop-beta.deb")
sha256sums=('7259a5a1dbd680751ecdf752c31d3fc40f443abdc0e02649444d6a4016b102ce')
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/${pkgname%-bin}/Proton\ Mail\ Beta "$pkgdir/usr/bin/${pkgname%-bin}"
# Remove unneeded Electron license & lintian folder
rm -rf "$pkgdir"/usr/share/{doc,lintian}
}
|