Here is a patch file that will fix the build:
diff --git a/PKGBUILD b/PKGBUILD
index 7bd80b4..8e53fc0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Łukasz Mariański <lmarianski at protonmail dot com>
pkgname=powercord-electron-git
_pkgname=${pkgname%-electron-*}
-pkgver=r1357.8b99354d
+pkgver=r1362.32054f49
pkgrel=1
pkgdesc="A lightweight discord client mod focused on simplicity and performance."
arch=('any')
@@ -32,7 +32,7 @@ md5sums=('SKIP'
'567d9d8abddefa0417035759348230d1'
'63b1a3b7097e89f695be3e51b6bfc071'
'ecf6cd5b74cf81762fad6f82985b3c95'
- '926745d0ebfda9de7337e99e776bdd51'
+ '7f07851718271cf0a7a8dcf8a8a793d4'
'4370ed3647d62b1f1cb0e791d960f253')
pkgver() {
diff --git a/powercord-plugins.patch b/powercord-plugins.patch
index 213fee4..7556189 100644
--- a/powercord-plugins.patch
+++ b/powercord-plugins.patch
@@ -17,12 +17,10 @@ diff --git a/src/Powercord/managers/plugins.js b/src/Powercord/managers/plugins.
index b904caaf..eb53db2b 100644
--- a/src/Powercord/managers/plugins.js
+++ b/src/Powercord/managers/plugins.js
-@@ -1,10 +1,12 @@
--const { resolve } = require('path');
-+const { resolve, join } = require('path');
- const { readdirSync } = require('fs');
- const { rmdirRf } = require('powercord/util');
-
+@@ -5,9 +5,11 @@
+ const { exec } = require('child_process');
+ const security = require('./security.js');
+
+const XDG_DATA_HOME = process.env.XDG_DATA_HOME || join(process.env.HOME, '.local', 'share');
+
module.exports = class PluginManager {
Pinned Comments
m00nw4tch3r commented on 2022-08-08 18:49 (UTC)
As Powercord went EOL, I will continue maintaining a package for the Replugged fork instead of this one: https://aur.archlinux.org/packages/replugged-electron-git/.