ngx-fsr4
LOW
maintainer Grakul
0 votes
scanned 2026-10-26 09:44:33.960329
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Eugene Flanagin <eflanagin@pm.me>
2
# Experimental: tested on one RX 9070 XT system, two games. Not affiliated with NVIDIA or AMD.
3
pkgname=ngx-fsr4
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc="EXPERIMENTAL: stand-in for NVIDIA's NGX runtime that answers DLSS Super Resolution with AMD FSR 4 (Proton)"
7
arch=('any')
8
url="https://github.com/eugenesflanagin-spec/ngx-fsr4"
9
license=('MIT' 'LicenseRef-AMD-FidelityFX')
10
depends=('bash' 'python' 'coreutils' 'findutils' 'procps-ng')
11
# any llvm-mingw build works: llvm-mingw, llvm-mingw-w64-toolchain-ucrt-bin, ...-msvcrt-bin (all AUR)
12
makedepends=('llvm-mingw-w64-toolchain')
13
optdepends=('goverlay: provides an FSR 4.1.1 amd_fidelityfx_upscaler_dx12.dll'
14
'steam: the games and Proton it works with')
15
conflicts=('ngx-fsr4-git')
16
options=('!strip' '!lto' '!debug')
17
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18
sha256sums=('1262c67b2235bfc8f44965d501aa3a0edd471cb2d5a7adf8c80b3d970128677a')
19
20
_llvm_mingw() {
21
local d
22
for d in "$LLVM_MINGW" /opt/llvm-mingw /opt/llvm-mingw/llvm-mingw-ucrt /opt/llvm-mingw/llvm-mingw-msvcrt; do
23
[[ -n $d && -x $d/bin/x86_64-w64-mingw32-clang ]] && { echo "$d"; return; }
24
done
25
echo "llvm-mingw not found; set LLVM_MINGW=/path/to/llvm-mingw" >&2
26
return 1
27
}
28
29
build() {
30
cd "$pkgname-$pkgver"
31
# Windows binaries: host CFLAGS/LDFLAGS do not apply
32
env -u CFLAGS -u CXXFLAGS -u LDFLAGS make LLVM_MINGW="$(_llvm_mingw)"
33
}
34
35
check() {
36
cd "$pkgname-$pkgver"
37
# no GPU or Wine needed: the DLL's PE exports, and the helper against a fake Steam library
38
env -u CFLAGS -u CXXFLAGS -u LDFLAGS make LLVM_MINGW="$(_llvm_mingw)" check
39
}
40
41
package() {
42
cd "$pkgname-$pkgver"
43
install -Dm644 build/nvngx.dll "$pkgdir/usr/lib/ngx-fsr4/nvngx.dll"
44
install -Dm644 build/harness.exe "$pkgdir/usr/lib/ngx-fsr4/harness.exe"
45
install -Dm644 build/gpu.exe "$pkgdir/usr/lib/ngx-fsr4/gpu.exe"
46
install -Dm755 tools/ngx-fsr4 "$pkgdir/usr/bin/ngx-fsr4"
47
install -Dm644 -t "$pkgdir/usr/share/doc/ngx-fsr4" README.md CHANGELOG.md CREDITS.md docs/USER-GUIDE.md
48
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
49
install -Dm644 third_party/ffx/docs/license.md "$pkgdir/usr/share/licenses/$pkgname/FidelityFX-LICENSE.md"
50
}
51
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-26 09:44:33 | Low | 1 |