summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e1c583312761ae2ee1fc71def0cf55d4a23b617 (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: Ali Molaei <ali dot molaei at protonmail dot com>
# Contributor: Lenovsky <lenovsky at pm dot me>
# Contributor: aimileus <me at aimileus dot nl>

pkgname=protonmail-bridge
pkgver=1.2.6
pkgrel=1
_pkgrel=1
pkgdesc="Integrate ProtonMail paid account with any program that supports IMAP and SMTP"
arch=('x86_64')
url="https://www.protonmail.com/bridge"
license=('MIT')
depends=('hicolor-icon-theme' 'libsecret' 'qt5-multimedia' 'ttf-dejavu')
optdepends=(
    'gnome-keyring: supported password manager (password manager is required)'
    'pass: supported password manager (password manager is required)'
)
conflicts=('protonmail-bridge-bin')
options=('!emptydirs' '!strip')
source=("https://protonmail.com/download/protonmail-bridge_${pkgver}-${_pkgrel}_amd64.deb")
sha256sums=('34fdc917fb2c6f06ec6c6a71041f31ad3599b4ee5556e09ad919c36d71eac247')

prepare() {
    tar xf data.tar.xz

#    mkdir -p usr/share/icons/hicolor/scalable/apps
#    mv usr/share/icons/protonmail/ProtonMail_Bridge.svg \
#        usr/share/icons/hicolor/scalable/apps/"${pkgname}".svg
#
#    mv usr/share/applications/ProtonMail_Bridge.desktop \
#        usr/share/applications/"${pkgname}".desktop
#    sed -i "s|Icon=.*|Icon=protonmail-bridge|" \
#        usr/share/applications/"${pkgname}".desktop

}

package() {
    mv usr/ "${pkgdir}"

    install -D -m644 "${pkgdir}"/usr/lib/protonmail/bridge/{eula.txt,LICENSE} \
        -t "${pkgdir}"/usr/share/licenses/"${pkgname}"
}