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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |