xorg-discord-rpc-git
maintainer thelinuxpirate
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads the Discord Game SDK from an official but non-whitelisted host, which is a legitimate dependency; the source is verified by a checksum and used only for linking, not execution, posing minimal supply-chain risk.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads the Discord Game SDK from an official but non-whitelisted host, which is a legitimate dependency; the source is verified by a checksum and used only for linking, not execution, posing minimal supply-chain risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:16
"https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: TRONG <spektralfrogadier@gmail.com>
2
pkgname=xorg-discord-rpc-git
3
pkgver=r63.15f8fa9
4
pkgrel=1
5
pkgdesc="Discord Rich Presence client for Xorg (git version)"
6
arch=('x86_64')
7
url="https://github.com/thelinuxpirate/xorg-discord-rpc"
8
license=('GPL-3.0-only' 'LicenseRef-Discord-Game-SDK')
9
depends=('gcc-libs' 'libx11')
10
makedepends=('cmake' 'git' 'wget' 'unzip' 'patchelf')
11
provides=('xorg-discord-rpc')
12
conflicts=('xorg-discord-rpc')
13
14
source=(
15
"git+https://github.com/thelinuxpirate/xorg-discord-rpc.git"
16
"https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip"
17
)
18
19
sha256sums=('SKIP'
20
'426eb5fa70647d884f461c63825b63668349efb4bc68a16e70bc4a24e119b92e')
21
22
pkgver() {
23
cd "$srcdir/xorg-discord-rpc"
24
printf "r%s.%s" \
25
"$(git rev-list --count HEAD)" \
26
"$(git rev-parse --short HEAD)"
27
}
28
29
build() {
30
cd "$srcdir/xorg-discord-rpc"
31
32
# Create build directory
33
if [ ! -d "build" ]; then
34
mkdir -p build
35
fi
36
37
# Create missing SDK directories
38
mkdir -p "$srcdir/xorg-discord-rpc/discord-sdk/"{include,lib,src}
39
40
# Copy everything to the proper build location
41
cp "$srcdir/cpp/"*.h discord-sdk/include/
42
cp "$srcdir/cpp/"*.cpp discord-sdk/src/
43
cp "$srcdir/lib/x86_64/discord_game_sdk.so" \
44
discord-sdk/lib/libdiscord_game_sdk.so
45
46
# Patch types.h
47
local types_h="discord-sdk/include/types.h"
48
if ! grep -q "<cstdint>" "$types_h"; then
49
sed -i '1i#include <cstdint>' "$types_h"
50
fi
51
52
# Build
53
cmake -S . -B build \
54
-DDISCORD_SDK_DIR="$PWD/discord-sdk" \
55
-DCMAKE_SKIP_RPATH=ON \
56
-DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF
57
58
cmake --build build
59
}
60
61
package() {
62
cd "$srcdir/xorg-discord-rpc"
63
64
# Install the Discord Game SDK instead of building it
65
install -Dm755 discord-sdk/lib/libdiscord_game_sdk.so \
66
"$pkgdir/usr/lib/libdiscord_game_sdk.so"
67
68
# Install program to your system
69
install -Dm755 build/xorg-discord-rpc \
70
"$pkgdir/usr/bin/xorg-discord-rpc"
71
72
# Clean package
73
patchelf --remove-rpath "$pkgdir/usr/bin/xorg-discord-rpc"
74
75
# Create documentation directory
76
install -d "$pkgdir/usr/share/doc/xorg-discord-rpc"
77
78
# Main README & Configuration file explanation
79
install -Dm644 README.md \
80
"$pkgdir/usr/share/doc/xorg-discord-rpc/"
81
82
# Program license
83
install -Dm644 LICENSE \
84
"$pkgdir/usr/share/licenses/$pkgname/GPL-3.0.txt"
85
86
# Main README & Configuration file explanation
87
install -Dm644 CONFIGURATION.md \
88
"$pkgdir/usr/share/doc/xorg-discord-rpc/"
89
90
# More in depth details about assets
91
install -Dm644 assets/README.org \
92
"$pkgdir/usr/share/doc/xorg-discord-rpc/ASSETS.org"
93
94
# Provide default config
95
install -Dm644 exampleConfig.toml \
96
"$pkgdir/usr/share/doc/xorg-discord-rpc/config.toml"
97
}
98
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |