upgpkg: discord 0.0.55-4: remove python dep
* Check for Python availability in launcher script as it's only necessary for Krisp patcher
This commit is contained in:
parent
651975fed7
commit
add7b077fa
3 changed files with 11 additions and 9 deletions
5
.SRCINFO
5
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = discord_arch_electron
|
pkgbase = discord_arch_electron
|
||||||
pkgdesc = Discord using system provided electron29 for increased security and performance
|
pkgdesc = Discord using system provided electron29 for increased security and performance
|
||||||
pkgver = 0.0.55
|
pkgver = 0.0.55
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = https://discord.com
|
url = https://discord.com
|
||||||
install = discord_arch_electron.install
|
install = discord_arch_electron.install
|
||||||
arch = any
|
arch = any
|
||||||
|
@ -10,7 +10,6 @@ pkgbase = discord_arch_electron
|
||||||
makedepends = curl
|
makedepends = curl
|
||||||
depends = electron29
|
depends = electron29
|
||||||
depends = libxss
|
depends = libxss
|
||||||
depends = python
|
|
||||||
optdepends = libpulse: Pulseaudio support
|
optdepends = libpulse: Pulseaudio support
|
||||||
optdepends = libappindicator-gtk3: Systray indicator support
|
optdepends = libappindicator-gtk3: Systray indicator support
|
||||||
optdepends = xdg-utils: Open files
|
optdepends = xdg-utils: Open files
|
||||||
|
@ -23,7 +22,7 @@ pkgbase = discord_arch_electron
|
||||||
source = discord-launcher.sh
|
source = discord-launcher.sh
|
||||||
source = krisp-patcher.py
|
source = krisp-patcher.py
|
||||||
sha512sums = c12365109cb4db94033fda101073d2a3d6af7bdc9728e025494ee8d44ebf5f27623861879ec38bb7dd88d40de7cddede268e0f5e44bfeb586fc12713a3758c5b
|
sha512sums = c12365109cb4db94033fda101073d2a3d6af7bdc9728e025494ee8d44ebf5f27623861879ec38bb7dd88d40de7cddede268e0f5e44bfeb586fc12713a3758c5b
|
||||||
sha512sums = 6b7043d2e66b52a5f76b8d01813a7f4fd572b38bbd24087d618af7f2cc416c41074071fa738af5e6f31dacd0186d71eb841fa0c598bfa3ad444c5bbc911402af
|
sha512sums = e11a60419c6ee5944aefc1ac16a5b496518fae626627d37a5bf636975bd21b1d9b6118ec3f44e7f4283befe5fa14737ad28dc38d975967789247ac0e66c352f3
|
||||||
sha512sums = 3c1021592fa856f3561072c76b5ee0b5a34a53bc230336e6d36827efb4866c9d801ef7abb24650d3a7210c61dd57f35e2812ae89226fc157cc8d9ffce032155f
|
sha512sums = 3c1021592fa856f3561072c76b5ee0b5a34a53bc230336e6d36827efb4866c9d801ef7abb24650d3a7210c61dd57f35e2812ae89226fc157cc8d9ffce032155f
|
||||||
|
|
||||||
pkgname = discord_arch_electron
|
pkgname = discord_arch_electron
|
||||||
|
|
6
PKGBUILD
6
PKGBUILD
|
@ -10,7 +10,7 @@ _pkgname=discord
|
||||||
_electron=electron29
|
_electron=electron29
|
||||||
pkgname=${_pkgname}_arch_electron
|
pkgname=${_pkgname}_arch_electron
|
||||||
pkgver=0.0.55
|
pkgver=0.0.55
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Discord using system provided ${_electron} for increased security and performance"
|
pkgdesc="Discord using system provided ${_electron} for increased security and performance"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
provides=("${_pkgname}")
|
provides=("${_pkgname}")
|
||||||
|
@ -19,7 +19,7 @@ url='https://discord.com'
|
||||||
license=('custom')
|
license=('custom')
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
install="$pkgname.install"
|
install="$pkgname.install"
|
||||||
depends=("${_electron}" 'libxss' 'python')
|
depends=("${_electron}" 'libxss')
|
||||||
makedepends=('asar' 'curl')
|
makedepends=('asar' 'curl')
|
||||||
optdepends=('libpulse: Pulseaudio support'
|
optdepends=('libpulse: Pulseaudio support'
|
||||||
'libappindicator-gtk3: Systray indicator support'
|
'libappindicator-gtk3: Systray indicator support'
|
||||||
|
@ -30,7 +30,7 @@ source=("https://dl.discordapp.net/apps/linux/${pkgver}/${_pkgname}-${pkgver}.ta
|
||||||
'discord-launcher.sh'
|
'discord-launcher.sh'
|
||||||
'krisp-patcher.py') # original: https://github.com/sersorrel/sys/blob/main/hm/discord/krisp-patcher.py
|
'krisp-patcher.py') # original: https://github.com/sersorrel/sys/blob/main/hm/discord/krisp-patcher.py
|
||||||
sha512sums=('c12365109cb4db94033fda101073d2a3d6af7bdc9728e025494ee8d44ebf5f27623861879ec38bb7dd88d40de7cddede268e0f5e44bfeb586fc12713a3758c5b'
|
sha512sums=('c12365109cb4db94033fda101073d2a3d6af7bdc9728e025494ee8d44ebf5f27623861879ec38bb7dd88d40de7cddede268e0f5e44bfeb586fc12713a3758c5b'
|
||||||
'6b7043d2e66b52a5f76b8d01813a7f4fd572b38bbd24087d618af7f2cc416c41074071fa738af5e6f31dacd0186d71eb841fa0c598bfa3ad444c5bbc911402af'
|
'e11a60419c6ee5944aefc1ac16a5b496518fae626627d37a5bf636975bd21b1d9b6118ec3f44e7f4283befe5fa14737ad28dc38d975967789247ac0e66c352f3'
|
||||||
'3c1021592fa856f3561072c76b5ee0b5a34a53bc230336e6d36827efb4866c9d801ef7abb24650d3a7210c61dd57f35e2812ae89226fc157cc8d9ffce032155f')
|
'3c1021592fa856f3561072c76b5ee0b5a34a53bc230336e6d36827efb4866c9d801ef7abb24650d3a7210c61dd57f35e2812ae89226fc157cc8d9ffce032155f')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|
|
@ -14,10 +14,13 @@ declare -l PATCH_KRISP
|
||||||
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
|
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
|
||||||
krisp_bin="${DISCORD_USER_DATA_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/${name}}/${ver}/modules/${name}_krisp/${name}_krisp.node"
|
krisp_bin="${DISCORD_USER_DATA_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/${name}}/${ver}/modules/${name}_krisp/${name}_krisp.node"
|
||||||
|
|
||||||
if [[ "${PATCH_KRISP:-}" == true ]] && [[ -w "${krisp_bin}" ]] && python -c "import capstone; import elftools" &> /dev/null; then
|
if [[ "${PATCH_KRISP:-}" == true ]] && [[ -w "${krisp_bin}" ]]; then
|
||||||
|
if hash python &> /dev/null && python -c 'import capstone; import elftools' &> /dev/null; then
|
||||||
# Patch Krisp binary to ignore signature check
|
# Patch Krisp binary to ignore signature check
|
||||||
|
echo -n 'Running Krisp patcher... '
|
||||||
python /usr/share/${name}/krisp-patcher.py "${krisp_bin}"
|
python /usr/share/${name}/krisp-patcher.py "${krisp_bin}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -r "${flags_file}" ]]; then
|
if [[ -r "${flags_file}" ]]; then
|
||||||
mapfile -t < "${flags_file}"
|
mapfile -t < "${flags_file}"
|
||||||
|
|
Loading…
Reference in a new issue