uppkg: discord 0.0.44-2: bump to electron29

This commit is contained in:
Zoddo 2024-03-11 20:41:50 +01:00
parent cc099641eb
commit 2a87d35dce
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 43E8D68722C7D376
2 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,12 @@
pkgbase = discord_arch_electron pkgbase = discord_arch_electron
pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance
pkgver = 0.0.44 pkgver = 0.0.44
pkgrel = 1 pkgrel = 2
url = https://discord.com url = https://discord.com
arch = any arch = any
license = custom license = custom
makedepends = asar makedepends = asar
depends = electron26 depends = electron
depends = libxss depends = libxss
optdepends = libpulse: Pulseaudio support optdepends = libpulse: Pulseaudio support
optdepends = xdg-utils: Open files optdepends = xdg-utils: Open files

View file

@ -4,10 +4,10 @@
# Contributor: johnnyapol <arch@johnnyapol.me> # Contributor: johnnyapol <arch@johnnyapol.me>
# Based off the discord community repo PKGBUILD by Filipe Laíns (FFY00) <lains@archlinux.org> # Based off the discord community repo PKGBUILD by Filipe Laíns (FFY00) <lains@archlinux.org>
_pkgname=discord _pkgname=discord
_electron=electron26 _electron=electron
pkgname=${_pkgname}_arch_electron pkgname=${_pkgname}_arch_electron
pkgver=0.0.44 pkgver=0.0.44
pkgrel=1 pkgrel=2
pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance" pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance"
arch=('any') arch=('any')
provides=("${_pkgname}") provides=("${_pkgname}")
@ -37,6 +37,7 @@ prepare() {
rm Discord/resources/app.asar rm Discord/resources/app.asar
sed -i "s|process.resourcesPath|'/usr/share/${_pkgname}/resources'|" Discord/resources/app/app_bootstrap/buildInfo.js sed -i "s|process.resourcesPath|'/usr/share/${_pkgname}/resources'|" Discord/resources/app/app_bootstrap/buildInfo.js
sed -i "s|exeDir,|'/usr/share/pixmaps',|" Discord/resources/app/app_bootstrap/autoStart/linux.js sed -i "s|exeDir,|'/usr/share/pixmaps',|" Discord/resources/app/app_bootstrap/autoStart/linux.js
sed -i -E "s|resourcesPath = _path.+;|resourcesPath = '/usr/share/${_pkgname}/resources';|" Discord/resources/app/common/paths.js
asar p Discord/resources/app Discord/resources/app.asar asar p Discord/resources/app Discord/resources/app.asar
rm -rf Discord/resources/app rm -rf Discord/resources/app
} }