upgpkg: discord 0.0.54-2: refactor, fix autostart, add deps, use wayland

* Slightly refactor PKGBUILD
* Fix autostart desktop file
* Add optional dependency used in official arch package
* Include patch to allow Krisp noise suppression support
* Add install file to inform user about this change
* Use Wayland instead of Xwayland in a Wayland session by setting
  Electron flag `ozone-platform-hint` to auto (default is X11)
This commit is contained in:
Manuel 2024-05-15 19:42:02 +02:00
parent 2b972808d2
commit f1b9162b23
Signed by: Manuel
GPG key ID: 4085037435E1F07A
4 changed files with 107 additions and 41 deletions

View file

@ -1,15 +1,18 @@
pkgbase = discord_arch_electron
pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance
pkgdesc = Discord using system provided electron (v29) for increased security and performance
pkgver = 0.0.54
pkgrel = 1
pkgrel = 2
url = https://discord.com
install = discord_arch_electron.install
arch = any
license = custom
makedepends = asar
depends = electron29
depends = libxss
optdepends = libpulse: Pulseaudio support
optdepends = libappindicator-gtk3: Systray indicator support
optdepends = xdg-utils: Open files
optdepends = rizin: Allow patching Krisp support
provides = discord
conflicts = discord
options = !strip
@ -18,7 +21,7 @@ pkgbase = discord_arch_electron
source = LICENSE.html::https://discord.com/terms
source = OSS-LICENSES.html::https://discord.com/licenses
sha512sums = ceb6265e846fafd27e3c2941f00f0a2d4e045abe5471a2691b070bedb330ef345edee838a706b27ff65ecce40aec46b1a1dd9c4bb9763dadaa907ec181c1a222
sha512sums = d398351b209cd89432d8e9cebe9122f152484236d8ca4dd91e5679d3853fe2f082625d35a9ac3f450f1f08250736bf3a23db9926311e8271730d884b57d12dbc
sha512sums = eb5043d09174b3e0dcb899ba5835e863ffdefe5f7e379ce4d01cfb7408a8727e7b0f58e405008f3d35c7675804fb051ee1517aa7ca20efc59610d9b93a664c35
sha512sums = SKIP
sha512sums = SKIP