summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAli Molaei2020-04-16 12:20:28 +0430
committerAli Molaei2020-04-16 12:20:28 +0430
commit7cb391a57689f138cd0ba2671a5887ef142f242d (patch)
treef0c719a2ac113d5d73aca873edc661cb9d02c0b2
parent1a5e282e82b70eaba3eff2c155e246e125f548bc (diff)
downloadaur-7cb391a57689f138cd0ba2671a5887ef142f242d.tar.gz
Build from source. Change License
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD39
-rwxr-xr-xprotonmail-bridge3
-rw-r--r--protonmail-bridge.desktop12
4 files changed, 36 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index d5802b0c6a2..25f537c80d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ pkg/
src/
*.pkg.tar*
protonmail-bridge*.deb
+proton-bridge/
diff --git a/PKGBUILD b/PKGBUILD
index 6e1c5833127..538f895978e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,13 @@
pkgname=protonmail-bridge
pkgver=1.2.6
-pkgrel=1
+pkgrel=2
_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')
+license=('GPL3')
+makedepends=('go' 'gcc')
depends=('hicolor-icon-theme' 'libsecret' 'qt5-multimedia' 'ttf-dejavu')
optdepends=(
'gnome-keyring: supported password manager (password manager is required)'
@@ -17,26 +18,26 @@ optdepends=(
)
conflicts=('protonmail-bridge-bin')
options=('!emptydirs' '!strip')
-source=("https://protonmail.com/download/protonmail-bridge_${pkgver}-${_pkgrel}_amd64.deb")
-sha256sums=('34fdc917fb2c6f06ec6c6a71041f31ad3599b4ee5556e09ad919c36d71eac247')
+source=("git://github.com/ProtonMail/proton-bridge.git"
+ "protonmail-bridge.desktop"
+ "protonmail-bridge")
+sha256sums=('SKIP'
+ '38638abfe99372a618a3b6e8939f1e94037203e1499cbd7c93fc6b0b47da0a2e'
+ '0b95101d33653e337e74e866a13b2a6006304a9a157e74ba36fa49b2b68ec826')
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
-
+ cd ${srcdir}/proton-bridge/
+ export PATH=$PATH:$(go env GOPATH)/bin/
+ make clean
+ make build
}
package() {
- mv usr/ "${pkgdir}"
-
- install -D -m644 "${pkgdir}"/usr/lib/protonmail/bridge/{eula.txt,LICENSE} \
- -t "${pkgdir}"/usr/share/licenses/"${pkgname}"
+ mkdir -p "${pkgdir}"/opt
+ mkdir -p "${pkgdir}"/usr/bin
+ cp -r "${srcdir}"/proton-bridge/cmd/Desktop-Bridge/deploy/linux/ "${pkgdir}"/opt/protonmail-bridge
+ install -D -m644 "${pkgdir}"/opt/protonmail-bridge/LICENSE -t "${pkgdir}"/usr/share/licenses/"${pkgname}"/
+ install -D -m644 "${pkgdir}"/opt/protonmail-bridge/logo.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/"${pkgname}".svg
+ install -D -m644 "${srcdir}"/protonmail-bridge.desktop -t "${pkgdir}"/usr/share/applications/
+ install -D -m755 "${srcdir}"/protonmail-bridge -t "${pkgdir}"/usr/bin/
}
diff --git a/protonmail-bridge b/protonmail-bridge
new file mode 100755
index 00000000000..b0a078718c4
--- /dev/null
+++ b/protonmail-bridge
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+/opt/protonmail-bridge/proton-bridge
diff --git a/protonmail-bridge.desktop b/protonmail-bridge.desktop
new file mode 100644
index 00000000000..9ee165e3da5
--- /dev/null
+++ b/protonmail-bridge.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Version=1.1
+Name=ProtonMail Bridge
+GenericName=ProtonMail Bridge for Linux
+Comment=The Bridge is an application that runs on your computer in the background and seamlessly encrypts and decrypts your mail as it enters and leaves your computer.
+Icon=/opt/protonmail-bridge/logo.svg
+Exec=/opt/protonmail-bridge/proton-bridge
+Terminal=false
+Categories=Office;Email;Network
+StartupWMClass=protonmail-bridge
+