vulkan-man-pages

maintainer araidameru · 4 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
MEDIUM npm/yarn/pnpm install of an undeclared external package 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
1# Maintainer: araidameru <x>
2# Contributor: otreblan <otreblain@gmail.com>
3# Contributor: Bohdan Mart <mart.bogdan at gmail>
4# Modified PKGBUILD from vulkan-html-docs
5
6pkgname="vulkan-man-pages"
7pkgver=1.4.309
8pkgrel=5
9pkgdesc="Vulkan man pages as manpages"
10arch=("any")
11url="https://github.com/KhronosGroup/Vulkan-Docs"
12license=('custom')
13makedepends=(
14 "asciidoctor"
15 "cmake"
16 "ghostscript"
17 "git"
18 "nodejs"
19 "npm"
20 "python-pyparsing"
21 "python3"
22 "source-highlight"
23)
24source=("$url/archive/v$pkgver.tar.gz" "manpage.patch")
25sha256sums=('927988494d09d3227fc6f70c86ffbfc0bbd5776ca535fd9f1e2a3d30f5c1b1e7'
26 '4e7201a5038cd88c03f48f3050702f3bcb1ca9acc974f5aa179a3b704d58b2fc')
27
28prepare() {
29 npm install escape-string-regexp@4.0.0
30 npm install he
31 cd "$srcdir"
32
33 mv ${url##*/}-$pkgver $pkgname-$pkgver
34
35 patch --strip=1 < ../manpage.patch
36
37 cd "$srcdir/$pkgname-$pkgver"
38
39 local _ESC="?\\\\u001b"
40 local _NL="\"\\\\n\""
41
42 sed -i "s/'<code>' + \(.*\) + '<\/code>'/ $_ESC + '\\\\#' + $_NL + $_ESC + \".IR \" + \1 + $_NL/" config/spec-macros/extension.rb
43 sed -i "s/'<strong .*>' + \(.*\) + '<\/strong>'/ $_ESC + '\\\\#' + $_NL + $_ESC + \".B \" + \1 + $_NL/" config/spec-macros/extension.rb
44 sed -i "s/Inline.new(.*html.*)/ $_ESC + '\\\\#' + $_NL + $_ESC + \".BR \" + target + ' (3)' + $_NL/" config/spec-macros/extension.rb
45}
46
47build() {
48 cd "$srcdir/$pkgname-$pkgver"
49
50 ./makeAllExts -j html manhtmlpages styleguide registry
51}
52
53package() {
54 cd "$srcdir/$pkgname-$pkgver"
55
56 install -dm755 "$pkgdir/usr/share/man/man3"
57 install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
58
59 mv -v gen/out/man/html/* "$pkgdir/usr/share/man/man3"
60
61 find "$pkgdir/usr/share/man/man3" -name "*.3.gz" -exec gzip -d {} \+
62 find "$pkgdir/usr/share/man/man3" -name "*.3" -exec sed -i 's/\(.\)\\#/\1\n\\#/' {} \+
63 find "$pkgdir/usr/share/man/man3" -name "*.3" -exec sed -i 's/"C SPECIFICATION"/SYNOPSIS/' {} \+
64 find "$pkgdir/usr/share/man/man3" -name "*.3" -exec gzip {} \+
65
66 install -m644 config/copyright-ccby.adoc "$pkgdir/usr/share/licenses/$pkgname/copyright-ccby.adoc"
67 install -m644 config/copyright-spec.adoc "$pkgdir/usr/share/licenses/$pkgname/copyright-spec.adoc"
68}
69

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion