blob: 8ee0a61995f1dbb45b0d07522ff43650d7e8b05e (
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.5.1
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=('3e4c495334a649e21ffd68d70a3e4f9dee431eb5e74d189bd48a87b5b7b794d0')
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}
}
|