asciidoctor-web-pdf-git

LOW
maintainer taotieren 0 votes scanned 2026-11-02 00:26:00.633185
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-11-02 00:26:00 Low 2
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

Report a package

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

0 / 4000
Your suggestion