asciidoctor-web-pdf-git

LOW
maintainer taotieren 0 votes scanned 2026-09-18 00:17:11.210425
View on AUR
Why flagged

The package installs a locally built npm package from a git source checkout, which is normal AUR packaging; the variable use in npm install refers to the project's own source, not an undeclared external package.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package installs a locally built npm package from a git source checkout, which is normal AUR packaging; the variable use in npm install refers to the project's own source, not an undeclared external package.

  • PKGBUILD:41 npm install -g --prefix "${pkgdir}/usr" $(npm pack)
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:41 npm install -g --prefix "${pkgdir}/usr" $(npm pack)

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: taotieren <admin@taotieren.com>
2
3pkgname=asciidoctor-web-pdf-git
4pkgver=1.0.2.r1.g5359780
5pkgrel=1
6pkgdesc="A PDF converter for AsciiDoc based on web technologies. It allows complex layouts to be defined with CSS and JavaScript, while writing the content in AsciiDoc."
7arch=($CARCH)
8url="https://github.com/Mogztter/asciidoctor-web-pdf"
9license=('MIT')
10provides=(${pkgname%-git} asciidoctor-pdf)
11conflicts=(${pkgname%-git} asciidoctor-pdf)
12#replaces=(${pkgname})
13depends=(
14 nodejs
15)
16makedepends=(
17 git
18 npm
19 poppler
20 ghostscript
21)
22backup=()
23options=()
24install=
25source=("${pkgname%-git}::git+${url}.git")
26sha256sums=('SKIP')
27noextract=()
28
29pkgver() {
30 cd "${srcdir}/${pkgname%-git}"
31 (
32 set -o pipefail
33 git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^[vV]//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
34 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35 )
36}
37
38package() {
39 cd "${srcdir}/${pkgname%-git}"
40 export PUPPETEER_SKIP_DOWNLOAD=true
41 npm install -g --prefix "${pkgdir}/usr" $(npm pack)
42
43 # Non-deterministic race in npm gives 777 permissions to random directories.
44 # See https://github.com/npm/cli/issues/1103 for details.
45 find "${pkgdir}/usr" -type d -exec chmod 755 {} +
46
47 # npm gives ownership of ALL FILES to build user
48 # https://bugs.archlinux.org/task/63396
49 chown -R root:root "${pkgdir}"
50
51 install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
52}
53

Scan history

Scanned at (UTC)SeverityRules
2026-09-18 00:17:11 Low 2
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

Report a package

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

0 / 4000
Your suggestion