summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmiel Wiedijk2018-03-01 21:09:24 +0100
committerEmiel Wiedijk2018-03-02 17:00:03 +0100
commitb3b4b453defe07aa171b44fc9252bc8e31bedb91 (patch)
tree551f096da27c7ece9ce07af180c8d595a3f68702
downloadaur-b3b4b453defe07aa171b44fc9252bc8e31bedb91.tar.gz
protonmail-bridge - initial release
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d3d65763acb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = protonmail-bridge
+ pkgdesc = Application to use IMAP/SMTP with your paid ProtonMail account
+ pkgver = 1.0.1.4
+ pkgrel = 1
+ url = https://protonmail.com/bridge/
+ arch = x86_64
+ license = custom
+ license = MIT
+ depends = gst-plugins-base-libs
+ depends = gtk3
+ depends = libpulse
+ depends = libsecret
+ depends = qt5-svg
+ depends = qt5-declarative
+ depends = ttf-dejavu
+ options = !strip
+ source = https://protonmail.com/download/protonmail-bridge_1.0.1-4_amd64.deb
+ sha256sums = e8e65eac68dea73a05529eb0452760ad2c5bcf43bcd6c7ecef05d54bab58c3f6
+
+pkgname = protonmail-bridge
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d5802b0c6a2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.pkg.tar*
+protonmail-bridge*.deb
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef1238608cf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: aimileus <me at aimileus dot nl>
+pkgname=protonmail-bridge
+_pkgver=1.0.1
+_pkgrel=4
+pkgver="${_pkgver}.${_pkgrel}"
+pkgrel=1
+pkgdesc="Application to use IMAP/SMTP with your paid ProtonMail account"
+arch=('x86_64')
+url="https://protonmail.com/bridge/"
+license=('custom' 'MIT')
+depends=(
+ 'gst-plugins-base-libs'
+ 'gtk3'
+ 'libpulse'
+ 'libsecret'
+ 'qt5-svg'
+ 'qt5-declarative'
+ 'ttf-dejavu'
+)
+options=('!strip')
+source=("https://protonmail.com/download/protonmail-bridge_${_pkgver}-${_pkgrel}_amd64.deb")
+sha256sums=('e8e65eac68dea73a05529eb0452760ad2c5bcf43bcd6c7ecef05d54bab58c3f6')
+
+package() {
+ tar xvJf data.tar.xz -C "$pkgdir"
+
+ # Tarball files are owned by UID:1000
+ chown -R root:root "$pkgdir"
+
+ # Don't pollute /usr/share/icons
+ install -D "$pkgdir/usr/share/icons/protonmail/Desktop-Bridge.svg" \
+ "$pkgdir/usr/share/icons/hicolor/scalable/apps/protonmail-bridge.svg"
+ rm -rf "$pkgdir/usr/share/icons/protonmail"
+
+ # Update desktop entry with appropriate values
+ mv "$pkgdir/usr/share/applications/Desktop-Bridge.desktop" \
+ "$pkgdir/usr/share/applications/protonmail-bridge.desktop"
+ sed -i "s|Icon=/usr/share/icons/protonmail/Desktop-Bridge.svg|Icon=protonmail-bridge|" "$pkgdir/usr/share/applications/protonmail-bridge.desktop"
+
+ install -Dm644 "$pkgdir"/usr/lib/protonmail/bridge/{eula.txt,LICENSE} \
+ -t "$pkgdir/usr/share/licenses/$pkgname"
+}