From 41e0c16385293a643ae1c4c51abf4decca139861 Mon Sep 17 00:00:00 2001 From: Zoddo Date: Sat, 29 Oct 2022 22:13:19 +0200 Subject: [PATCH] uppkg: discord 0.0.21, add libxss as dependency and changes suggested by Thaodan Co-authored-by: Thaodan --- .SRCINFO | 11 ++++++----- PKGBUILD | 16 +++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 9b2bb89..a6995c5 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,21 +1,22 @@ pkgbase = discord_arch_electron pkgdesc = Discord (popular voice + video app) using the system provided electron for increased security and performance - pkgver = 0.0.20 + pkgver = 0.0.21 pkgrel = 1 url = https://discord.com arch = x86_64 license = custom makedepends = asar depends = electron19 + depends = libxss optdepends = libpulse: Pulseaudio support optdepends = xdg-utils: Open files provides = discord conflicts = discord - source = https://dl.discordapp.net/apps/linux/0.0.20/discord-0.0.20.tar.gz + source = https://dl.discordapp.net/apps/linux/0.0.21/discord-0.0.21.tar.gz source = discord-launcher.sh - source = LICENSE.html::https://discordapp.com/terms - source = OSS-LICENSES.html::https://discordapp.com/licenses - sha512sums = 720bc8a8b61cbbe3566c34065f9831571da121d210e3f2876c34cb964d60bab33f8dc16f7ca758e918cd8f35a69699c0b9063782e6c95087c0baa41a6d0e7cf5 + source = LICENSE.html::https://discord.com/terms + source = OSS-LICENSES.html::https://discord.com/licenses + sha512sums = 149ae5b8b7d92549e12eca52e45d3f5761ef022ae321cf33fadc3b56c4cee0616a5166380faea038256213713a7aa90e1befc4caa3e6a4de8e15c1cb1d8f925d sha512sums = 93418d8e40cab7ed25f6debc341294f76f90a4f879e158cfea418360c8705347653f60dbd6f18fb754448d299404bfa247b07625ae113e9386188d9f9485a14b sha512sums = SKIP sha512sums = SKIP diff --git a/PKGBUILD b/PKGBUILD index fe012c2..0a01a67 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,10 +1,12 @@ # Maintainer: Zoddo +# Contributor: Thaodan # Contributor: huyizheng # Contributor: johnnyapol # Based off the discord community repo PKGBUILD by Filipe LaĆ­ns (FFY00) -pkgname=discord_arch_electron _pkgname=discord -pkgver=0.0.20 +_electron=electron19 +pkgname=${_pkgname}_arch_electron +pkgver=0.0.21 pkgrel=1 pkgdesc="Discord (popular voice + video app) using the system provided electron for increased security and performance" arch=('x86_64') @@ -12,21 +14,21 @@ provides=('discord') conflicts=('discord') url='https://discord.com' license=('custom') -depends=('electron19') +depends=("${_electron}" 'libxss') makedepends=('asar') optdepends=('libpulse: Pulseaudio support' 'xdg-utils: Open files') source=("https://dl.discordapp.net/apps/linux/$pkgver/$_pkgname-$pkgver.tar.gz" 'discord-launcher.sh' - 'LICENSE.html::https://discordapp.com/terms' - 'OSS-LICENSES.html::https://discordapp.com/licenses') -sha512sums=('720bc8a8b61cbbe3566c34065f9831571da121d210e3f2876c34cb964d60bab33f8dc16f7ca758e918cd8f35a69699c0b9063782e6c95087c0baa41a6d0e7cf5' + 'LICENSE.html::https://discord.com/terms' + 'OSS-LICENSES.html::https://discord.com/licenses') +sha512sums=('149ae5b8b7d92549e12eca52e45d3f5761ef022ae321cf33fadc3b56c4cee0616a5166380faea038256213713a7aa90e1befc4caa3e6a4de8e15c1cb1d8f925d' '93418d8e40cab7ed25f6debc341294f76f90a4f879e158cfea418360c8705347653f60dbd6f18fb754448d299404bfa247b07625ae113e9386188d9f9485a14b' SKIP SKIP) prepare() { - sed -i "s|@ELECTRON@|electron19|" discord-launcher.sh + sed -i "s|@ELECTRON@|${_electron}|" discord-launcher.sh sed -i "s|Exec=.*|Exec=/usr/bin/$_pkgname|" Discord/discord.desktop }