shadps4-git
The package builds from source using git repositories hosted on GitHub and Google's android.googlesource.com, which are legitimate developer platforms; the non-standard host refers to a source URL for a submodule, but all sources are openly accessible and used to compile the emulator, with no evidence of malicious or unverifiable code execution.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package builds from source using git repositories hosted on GitHub and Google's android.googlesource.com, which are legitimate developer platforms; the non-standard host refers to a source URL for a submodule, but all sources are openly accessible and used to compile the emulator, with no evidence of malicious or unverifiable code execution.
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:70
"aac::git+https://android.googlesource.com/platform/external/aac.git"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=shadps4
pkgname=$_pkgname-git
pkgver=0.18.0.r62.g22fb56d
pkgrel=1
pkgdesc="Sony PlayStation 4 emulator (CLI)"
arch=('aarch64' 'x86_64')
url="https://shadps4.net/"
license=('GPL-2.0-or-later')
depends=(
'abseil-cpp' # protobuf dependency
'glibc'
'glslang>=15'
'miniz>=3.1'
'pugixml>=1.14'
'sdl3>=3.3.5'
)
makedepends=(
'boost>=1.84'
'cli11>=2.6.1'
'cmake>=3.16.3'
'ffmpeg>=2:5.1.2'
'fmt>=12'
'freetype2>=2.14.1'
'git'
'half>=1.12'
'libgcc'
'libpng>=1.6'
'libstdc++'
'magic_enum>=0.9.7'
'miniupnpc>=2.3.3'
'nlohmann-json>=3.12'
'openal'
'openssl'
'rapidjson'
'renderdoc'
'robin-map>=1.3'
'spirv-headers' # sirit dependency
'stb'
'systemd-libs'
'toml11>=4.2'
'util-linux-libs'
'vulkan-headers>=1:1.4.330'
'vulkan-memory-allocator>=3.1'
'xbyak>=7.07'
'xxhash>=0.8.2'
'zarchive>=0.1.2'
'zlib'
'zycore-c' # zydis dependency
)
optdepends=(
'renderdoc: for graphics debugging'
'shadps4-qtlauncher: for official Qt GUI'
'vulkan-validation-layers: for vulkan debugging'
)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+https://github.com/shadps4-emu/shadPS4.git"
"$_pkgname-cpp-httplib::git+https://github.com/shadexternals/cpp-httplib.git"
"$_pkgname-discord-rpc::git+https://github.com/shadps4-emu/ext-discord-rpc.git"
"$_pkgname-hwinfo::git+https://github.com/shadps4-emu/ext-hwinfo.git"
"$_pkgname-imgui::git+https://github.com/shadexternals/imgui.git"
"$_pkgname-imguifiledialog::git+https://github.com/shadexternals/ImGuiFileDialog.git"
"$_pkgname-libatrac9::git+https://github.com/shadps4-emu/ext-LibAtrac9.git"
"$_pkgname-libusb::git+https://github.com/shadexternals/libusb.git"
"$_pkgname-protobuf::git+https://github.com/shadexternals/protobuf.git"
"$_pkgname-sirit::git+https://github.com/shadps4-emu/sirit.git"
"$_pkgname-tracy::git+https://github.com/shadps4-emu/tracy.git"
"aac::git+https://android.googlesource.com/platform/external/aac.git"
"minimp3::git+https://github.com/lieff/minimp3.git"
"spdlog::git+https://github.com/gabime/spdlog.git"
"zydis::git+https://github.com/zyantific/zydis.git"
)
b2sums=('SKIP'{,,,,,,,,,,,,,,})
pkgver() {
cd $_pkgname
git describe --long --abbrev=7 | sed 's/^v\.\?//;s/[^-]*-g/r&/;s/-/./g'
}
prepare() {
cd $_pkgname
git config submodule.externals/aacdec/fdk-aac.url ../aac
git config submodule.externals/cpp-httplib.url ../$_pkgname-cpp-httplib
git config submodule.externals/discord-rpc.url ../$_pkgname-discord-rpc
git config submodule.externals/hwinfo.url ../$_pkgname-hwinfo
git config submodule.externals/imgui.url ../$_pkgname-imgui
git config submodule.externals/ImGuiFileDialog.url ../$_pkgname-imguifiledialog
git config submodule.externals/LibAtrac9.url ../$_pkgname-libatrac9
git config submodule.externals/libusb.url ../$_pkgname-libusb
git config submodule.externals/minimp3.url ../minimp3
git config submodule.externals/protobuf.url ../$_pkgname-protobuf
git config submodule.externals/sirit.url ../$_pkgname-sirit
git config submodule.externals/spdlog.url ../spdlog
git config submodule.externals/tracy.url ../$_pkgname-tracy
git config submodule.externals/zydis.url ../zydis
git -c protocol.file.allow=always submodule update
# use makepkg.conf flags
sed -i '/-march=/d' CMakeLists.txt
# use system abseil-cpp
sed -i '/find_package/s/absl.*/absl CONFIG)/' CMakeLists.txt
# use system glslang
sed -i '/find_package/s/glslang.*/glslang CONFIG)/' CMakeLists.txt
# use system openssl
sed -i '/find_package/s/LibreSSL.*/OpenSSL CONFIG)/' CMakeLists.txt
}
build() {
local options=(
-B ../build
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_C_FLAGS_RELEASE="-DNDEBUG"
-D CMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_SKIP_INSTALL_RPATH=ON
-D ENABLE_SYSTEM_LIBRARIES=ON
-D ENABLE_UPDATER=OFF
-D SIRIT_USE_SYSTEM_SPIRV_HEADERS=ON
-W no-dev
)
cd $_pkgname
cmake "${options[@]}"
cmake --build ../build
}
package() {
depends+=(
'libavcodec.so'
'libavformat.so'
'libavutil.so'
'libcrypto.so'
'libfmt.so'
'libfreetype.so'
'libgcc_s.so'
'libminiupnpc.so'
'libopenal.so'
'libpng16.so'
'libssl.so'
'libstdc++.so'
'libswresample.so'
'libswscale.so'
'libudev.so'
'libuuid.so'
'libxxhash.so'
'libz.so'
'libzarchive.so'
)
# shellcheck disable=SC2154
DESTDIR="$pkgdir" cmake --install build
}
Changes since previous scan
--- PKGBUILD @ 2026-09-04 00:03+++ PKGBUILD @ 2026-09-17 00:27@@ -1,7 +1,7 @@ # Maintainer: Alexandre Bouvier <contact@amb.tf> _pkgname=shadps4 pkgname=$_pkgname-git-pkgver=0.18.0.r29.g8ca1d49+pkgver=0.18.0.r62.g22fb56d pkgrel=1 pkgdesc="Sony PlayStation 4 emulator (CLI)" arch=('aarch64' 'x86_64')@@ -60,7 +60,7 @@ "$_pkgname-cpp-httplib::git+https://github.com/shadexternals/cpp-httplib.git" "$_pkgname-discord-rpc::git+https://github.com/shadps4-emu/ext-discord-rpc.git" "$_pkgname-hwinfo::git+https://github.com/shadps4-emu/ext-hwinfo.git"- "$_pkgname-imgui::git+https://github.com/shadps4-emu/ext-imgui.git"+ "$_pkgname-imgui::git+https://github.com/shadexternals/imgui.git" "$_pkgname-imguifiledialog::git+https://github.com/shadexternals/ImGuiFileDialog.git" "$_pkgname-libatrac9::git+https://github.com/shadps4-emu/ext-LibAtrac9.git" "$_pkgname-libusb::git+https://github.com/shadexternals/libusb.git"@@ -83,9 +83,9 @@ cd $_pkgname git config submodule.externals/aacdec/fdk-aac.url ../aac git config submodule.externals/cpp-httplib.url ../$_pkgname-cpp-httplib- git config submodule.externals/dear_imgui.url ../$_pkgname-imgui git config submodule.externals/discord-rpc.url ../$_pkgname-discord-rpc git config submodule.externals/hwinfo.url ../$_pkgname-hwinfo+ git config submodule.externals/imgui.url ../$_pkgname-imgui git config submodule.externals/ImGuiFileDialog.url ../$_pkgname-imguifiledialog git config submodule.externals/LibAtrac9.url ../$_pkgname-libatrac9 git config submodule.externals/libusb.url ../$_pkgname-libusbScan 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 23:58:52 | Medium | 1 |
| 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 |