vulkan-man-pages
The npm install commands fetch two specific, legitimate JavaScript packages (escape-string-regexp and he) required for building the Vulkan documentation; these are not undeclared external packages but necessary build dependencies, and the package otherwise builds from official source with verified checksums.
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 npm install commands fetch two specific, legitimate JavaScript packages (escape-string-regexp and he) required for building the Vulkan documentation; these are not undeclared external packages but necessary build dependencies, and the package otherwise builds from official source with verified checksums.
1 higher static finding superseded - not the current verdict (shown for transparency)
npm_install_external
Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.
-
PKGBUILD:29
npm install escape-string-regexp@4.0.0 -
PKGBUILD:30
npm install he
PKGBUILD
2 offending line(s) highlighted# Maintainer: araidameru <x>
# Contributor: otreblan <otreblain@gmail.com>
# Contributor: Bohdan Mart <mart.bogdan at gmail>
# Modified PKGBUILD from vulkan-html-docs
pkgname="vulkan-man-pages"
pkgver=1.4.309
pkgrel=5
pkgdesc="Vulkan man pages as manpages"
arch=("any")
url="https://github.com/KhronosGroup/Vulkan-Docs"
license=('custom')
makedepends=(
"asciidoctor"
"cmake"
"ghostscript"
"git"
"nodejs"
"npm"
"python-pyparsing"
"python3"
"source-highlight"
)
source=("$url/archive/v$pkgver.tar.gz" "manpage.patch")
sha256sums=('927988494d09d3227fc6f70c86ffbfc0bbd5776ca535fd9f1e2a3d30f5c1b1e7'
'4e7201a5038cd88c03f48f3050702f3bcb1ca9acc974f5aa179a3b704d58b2fc')
prepare() {
npm install escape-string-regexp@4.0.0
npm install he
cd "$srcdir"
mv ${url##*/}-$pkgver $pkgname-$pkgver
patch --strip=1 < ../manpage.patch
cd "$srcdir/$pkgname-$pkgver"
local _ESC="?\\\\u001b"
local _NL="\"\\\\n\""
sed -i "s/'<code>' + \(.*\) + '<\/code>'/ $_ESC + '\\\\#' + $_NL + $_ESC + \".IR \" + \1 + $_NL/" config/spec-macros/extension.rb
sed -i "s/'<strong .*>' + \(.*\) + '<\/strong>'/ $_ESC + '\\\\#' + $_NL + $_ESC + \".B \" + \1 + $_NL/" config/spec-macros/extension.rb
sed -i "s/Inline.new(.*html.*)/ $_ESC + '\\\\#' + $_NL + $_ESC + \".BR \" + target + ' (3)' + $_NL/" config/spec-macros/extension.rb
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./makeAllExts -j html manhtmlpages styleguide registry
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -dm755 "$pkgdir/usr/share/man/man3"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
mv -v gen/out/man/html/* "$pkgdir/usr/share/man/man3"
find "$pkgdir/usr/share/man/man3" -name "*.3.gz" -exec gzip -d {} \+
find "$pkgdir/usr/share/man/man3" -name "*.3" -exec sed -i 's/\(.\)\\#/\1\n\\#/' {} \+
find "$pkgdir/usr/share/man/man3" -name "*.3" -exec sed -i 's/"C SPECIFICATION"/SYNOPSIS/' {} \+
find "$pkgdir/usr/share/man/man3" -name "*.3" -exec gzip {} \+
install -m644 config/copyright-ccby.adoc "$pkgdir/usr/share/licenses/$pkgname/copyright-ccby.adoc"
install -m644 config/copyright-spec.adoc "$pkgdir/usr/share/licenses/$pkgname/copyright-spec.adoc"
}
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 |