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-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 |