makedeb
Official Tutanota email client
Click here to go back to the commit logs for tutanota-desktop-bin.
Hash: 198da6357ce5db1500539e3134069fd1a784867e
Message: symlink binary, set 4755 permissions on chrome-sandbox
diff --git a/.SRCINFO b/.SRCINFO
index 5402cb0..0ace5be 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tutanota-desktop-bin
pkgdesc = Official Tutanota email client
pkgver = 3.94.5
- pkgrel = 1
+ pkgrel = 2
url = https://tutanota.com
arch = x86_64
license = GPL3
@@ -17,10 +17,8 @@ pkgbase = tutanota-desktop-bin
source = tutanota-desktop-3.94.5.AppImage::https://mail.tutanota.com/desktop/tutanota-desktop-linux.AppImage
source = linux-sig-3.94.5.bin::https://mail.tutanota.com/desktop/linux-sig.bin
source = tutao-pub-3.94.5.pem::https://github.com/tutao/tutanota/raw/tutanota-desktop-release-3.94.5/tutao-pub.pem
- source = tutanota-desktop
sha512sums = 1890314b7958f7609faffd0b594728d9db5515deb12c43bfc75e52d49bff2d473af2955a1bd607a1cbca63a72184069dec7c49baae51cbbf48ada647fb4313b1
sha512sums = 6e8f6257b7133b08d26df79acd23fbecb284305a13a154fe2a769d7ac2f2bfe8ec8f56501e8169b5e1ba1912284d1aab383daa8413db58e7ed3e8552fe40ba06
sha512sums = 7c6cf9f1074c08b4d38567ced95159c0809af025efe01b0163d9bb5107daabfa873064255186c071a7dc3a9177ccd0c1b2fcc8b085bdbff234965a6710b3ae45
- sha512sums = 373e1be50297177306ba2f6898fbb57e12b8360af5fb575b2711179e0e952b8e4e9de1d4a66675e441fbe7f8dd5c63d3bddf9114f6e3be95adb49703e597137f
pkgname = tutanota-desktop-bin
diff --git a/.gitignore b/.gitignore
index 1e407c4..4dab8d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,3 @@
!.gitignore
!PKGBUILD
!.SRCINFO
-!tutanota-desktop
diff --git a/PKGBUILD b/PKGBUILD
index b3634fa..f7f57d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Co-Maintainer: Aaron J. Graves <linux@ajgraves.com>
pkgname=tutanota-desktop-bin
pkgver=3.94.5
-pkgrel=1
+pkgrel=2
pkgdesc="Official Tutanota email client"
arch=('x86_64')
url="https://tutanota.com"
@@ -11,15 +11,13 @@ depends=('nss' 'libappindicator-gtk3' 'libnotify' 'org.freedesktop.secrets')
makedepends=('openssl')
source=("${pkgname%-bin}-$pkgver.AppImage::https://mail.tutanota.com/desktop/${pkgname%-bin}-linux.AppImage"
"linux-sig-$pkgver.bin::https://mail.tutanota.com/desktop/linux-sig.bin"
- "tutao-pub-$pkgver.pem::https://github.com/tutao/tutanota/raw/${pkgname%-bin}-release-$pkgver/tutao-pub.pem"
- "${pkgname%-bin}")
+ "tutao-pub-$pkgver.pem::https://github.com/tutao/tutanota/raw/${pkgname%-bin}-release-$pkgver/tutao-pub.pem")
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}" "${pkgname%-bin}-linux")
replaces=("${pkgname%-bin}-linux")
sha512sums=('1890314b7958f7609faffd0b594728d9db5515deb12c43bfc75e52d49bff2d473af2955a1bd607a1cbca63a72184069dec7c49baae51cbbf48ada647fb4313b1'
'6e8f6257b7133b08d26df79acd23fbecb284305a13a154fe2a769d7ac2f2bfe8ec8f56501e8169b5e1ba1912284d1aab383daa8413db58e7ed3e8552fe40ba06'
- '7c6cf9f1074c08b4d38567ced95159c0809af025efe01b0163d9bb5107daabfa873064255186c071a7dc3a9177ccd0c1b2fcc8b085bdbff234965a6710b3ae45'
- '373e1be50297177306ba2f6898fbb57e12b8360af5fb575b2711179e0e952b8e4e9de1d4a66675e441fbe7f8dd5c63d3bddf9114f6e3be95adb49703e597137f')
+ '7c6cf9f1074c08b4d38567ced95159c0809af025efe01b0163d9bb5107daabfa873064255186c071a7dc3a9177ccd0c1b2fcc8b085bdbff234965a6710b3ae45')
prepare() {
# Validate the signature against public key: https://tutanota.com/howto/#verify-desktop
@@ -40,14 +38,16 @@ package() {
find squashfs-root/{locales,resources,usr/share/icons}/ -type d -exec chmod 755 {} +
install -d "$pkgdir/opt/${pkgname%-bin}/"
- cp -r squashfs-root/* "$pkgdir/opt/${pkgname%-bin}/"
+ cp -av squashfs-root/* "$pkgdir/opt/${pkgname%-bin}/"
+ chmod 4755 "$pkgdir/opt/$pkgname/chrome-sandbox"
rm -rf "$pkgdir/opt/${pkgname%-bin}/usr/"
rm "$pkgdir/opt/${pkgname%-bin}"/{"${pkgname%-bin}".desktop,AppRun}
# Fix permisssions
chmod 644 "$pkgdir/opt/${pkgname%-bin}"/resources/app{.asar,-update.yml}
- install -Dm755 "${pkgname%-bin}" -t "$pkgdir/usr/bin/"
+ install -d "$pkgdir/usr/bin"
+ ln -s "/opt/${pkgname%-bin}/${pkgname%-bin}" "$pkgdir/usr/bin/"
install -Dm644 "squashfs-root/${pkgname%-bin}.desktop" -t "$pkgdir/usr/share/applications/"
diff --git a/tutanota-desktop b/tutanota-desktop
deleted file mode 100644
index d424404..0000000
--- a/tutanota-desktop
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-/opt/tutanota-desktop/tutanota-desktop