xorg-discord-rpc-git
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
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)
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# Maintainer: TRONG <spektralfrogadier@gmail.com>
pkgname=xorg-discord-rpc-git
pkgver=r63.15f8fa9
pkgrel=1
pkgdesc="Discord Rich Presence client for Xorg (git version)"
arch=('x86_64')
url="https://github.com/thelinuxpirate/xorg-discord-rpc"
license=('GPL-3.0-only' 'LicenseRef-Discord-Game-SDK')
depends=('gcc-libs' 'libx11')
makedepends=('cmake' 'git' 'wget' 'unzip' 'patchelf')
provides=('xorg-discord-rpc')
conflicts=('xorg-discord-rpc')
source=(
"git+https://github.com/thelinuxpirate/xorg-discord-rpc.git"
"https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip"
)
sha256sums=('SKIP'
'426eb5fa70647d884f461c63825b63668349efb4bc68a16e70bc4a24e119b92e')
pkgver() {
cd "$srcdir/xorg-discord-rpc"
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/xorg-discord-rpc"
# Create build directory
if [ ! -d "build" ]; then
mkdir -p build
fi
# Create missing SDK directories
mkdir -p "$srcdir/xorg-discord-rpc/discord-sdk/"{include,lib,src}
# Copy everything to the proper build location
cp "$srcdir/cpp/"*.h discord-sdk/include/
cp "$srcdir/cpp/"*.cpp discord-sdk/src/
cp "$srcdir/lib/x86_64/discord_game_sdk.so" \
discord-sdk/lib/libdiscord_game_sdk.so
# Patch types.h
local types_h="discord-sdk/include/types.h"
if ! grep -q "<cstdint>" "$types_h"; then
sed -i '1i#include <cstdint>' "$types_h"
fi
# Build
cmake -S . -B build \
-DDISCORD_SDK_DIR="$PWD/discord-sdk" \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF
cmake --build build
}
package() {
cd "$srcdir/xorg-discord-rpc"
# Install the Discord Game SDK instead of building it
install -Dm755 discord-sdk/lib/libdiscord_game_sdk.so \
"$pkgdir/usr/lib/libdiscord_game_sdk.so"
# Install program to your system
install -Dm755 build/xorg-discord-rpc \
"$pkgdir/usr/bin/xorg-discord-rpc"
# Clean package
patchelf --remove-rpath "$pkgdir/usr/bin/xorg-discord-rpc"
# Create documentation directory
install -d "$pkgdir/usr/share/doc/xorg-discord-rpc"
# Main README & Configuration file explanation
install -Dm644 README.md \
"$pkgdir/usr/share/doc/xorg-discord-rpc/"
# Program license
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/GPL-3.0.txt"
# Main README & Configuration file explanation
install -Dm644 CONFIGURATION.md \
"$pkgdir/usr/share/doc/xorg-discord-rpc/"
# More in depth details about assets
install -Dm644 assets/README.org \
"$pkgdir/usr/share/doc/xorg-discord-rpc/ASSETS.org"
# Provide default config
install -Dm644 exampleConfig.toml \
"$pkgdir/usr/share/doc/xorg-discord-rpc/config.toml"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |