asmx-g3-git
The npm install commands in build() are for dev dependencies (typescript, @types/node) and project dependencies via package.json, which is part of the checked-out git source; this is normal for Node.js projects and not an undeclared external package install.
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 90%): The npm install commands in build() are for dev dependencies (typescript, @types/node) and project dependencies via package.json, which is part of the checked-out git source; this is normal for Node.js projects and not an undeclared external package install.
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:25
npm install --save-dev typescript -
PKGBUILD:26
npm install --save-dev @types/node
PKGBUILD
2 offending line(s) highlightedpkgname=asmx-g3-git
pkgver=r17.c89a3ce
pkgrel=1
pkgdesc="AsmX G3 Compiler - a compiler for AsmX language"
arch=('any')
url="https://github.com/AsmXFoundation/AsmX-G3"
license=('MIT')
depends=('nodejs' 'bash')
makedepends=('git' 'npm' 'jq' 'typescript')
provides=('asmx-g3')
conflicts=('asmx-g3')
source=("git+https://github.com/AsmXFoundation/AsmX-G3.git")
sha256sums=('SKIP')
pkgver() {
cd AsmX-G3
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# Navigate to the correct directory containing package.json
cd "$srcdir/AsmX-G3"
# install TypeScript and Node.js typings (local dev deps)
npm install --save-dev typescript
npm install --save-dev @types/node
# install dependencies but skip project "install" script
npm install --ignore-scripts
# build with TypeScript compiler
npm run build
}
package() {
cd "$srcdir/AsmX-G3"
# install module into /usr/lib/node_modules/asmx-g3
npm install --ignore-scripts --prefix "$pkgdir/usr/lib/node_modules/asmx-g3" .
# remove invalid symlink created by npm
rm -f "$pkgdir/usr/lib/node_modules/asmx-g3/node_modules/.bin/asmx"
rm -rf "$pkgdir/usr/lib/node_modules/asmx-g3/node_modules/asmx-g3"
# copy all sources from src
cp -r --no-preserve=mode,ownership "$srcdir/AsmX-G3/src/." \
"$pkgdir/usr/lib/node_modules/asmx-g3/"
# copy node_modules including llvm.js
cp -r --no-preserve=mode,ownership "$srcdir/AsmX-G3/node_modules/." \
"$pkgdir/usr/lib/node_modules/asmx-g3/node_modules/"
# fix permissions for binary
chmod 755 "$pkgdir/usr/lib/node_modules/asmx-g3/bin/asmx"
# create symlink for executable
install -dm755 "$pkgdir/usr/bin"
ln -sf "/usr/lib/node_modules/asmx-g3/bin/asmx" "$pkgdir/usr/bin/asmx"
# clean references to $srcdir/$pkgdir in package.json
find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d'
# remove internal npm keys from package.json
local tmppackage="$(mktemp)"
local pkgjson="$pkgdir/usr/lib/node_modules/asmx-g3/package.json"
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
mv "$tmppackage" "$pkgjson"
chmod 644 "$pkgjson"
# install documentation
install -Dm644 "$srcdir/AsmX-G3/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}
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 |