Just discovered this after protonmail-desktop stopped working for some reason. First thank you for putting this in the AUR, however, looking over your PKGBUILD and install files I do have some concerns. Please take this simply as ways to improve and simplify your package and in no way meant as criticism.
First, you are using the install file to create a softlink in bin. This should be done within the PKGBUILD file so that pacman can keep track of it. Doing it the way you are doing is not good practice.
Second, you should not be fixing the sandbox permissions within the install file, you should copy them with the --no-preserve=ownership option. Also with arch unless this is a special build of electron, you should probably just add electron as a dependency and only copy the resource folder. you will have to edit the desktop file to reflect that.
Third, no need to update the mime and desktop databases like you have to do with deb, pacman will take care of that.
Last, are you sure gconf is a dependency, it is being sunset in favor of dconf. I removed it as a dependency and did not have an issue installing, although I did modify your PKGBUILD file to reflect my suggestions.
Pinned Comments
joshirio commented on 2019-03-13 16:17
On KDE plasma if you have issues with the tray icon, make sure to change the .desktop launch command to:
XDG_CURRENT_DESKTOP=Unity "/opt/ElectronMail/electron-mail" %U