urdu-translator-git
The npx command runs electron-builder locally to package a frontend app; it does not execute arbitrary remote code, and the source is from a legitimate project repository.
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 95%): The npx command runs electron-builder locally to package a frontend app; it does not execute arbitrary remote code, and the source is from a legitimate project repository.
1 higher static finding superseded - not the current verdict (shown for transparency)
remote_code_tool
`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.
-
PKGBUILD:39
npx electron-builder --linux dir
PKGBUILD
1 offending line(s) highlightedpkgname=urdu-translator-git
pkgver=v1.0.0.r1.g6e4d704
pkgrel=1
pkgdesc="A screenshot-to-translation app using EasyOCR and Google Gemini"
arch=('x86_64')
url="https://github.com/AMVZEN/UrduLiveTranslator"
license=('MIT')
depends=('python' 'python-pip' 'nss' 'alsa-lib' 'gtk3' 'grim' 'slurp')
makedepends=('npm' 'git')
provides=('urdu-translator')
conflicts=('urdu-translator')
# IMPORTANT: Before publishing to AUR, push your code to GitHub and update the URL below!
# For local testing, we can use a local file path, but pacman/makepkg restricts it.
# You should uncomment the github link when doing this for real.
source=("git+https://github.com/AMVZEN/UrduLiveTranslator.git"
"urdu-translator.sh"
"urdu-translator.desktop")
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$srcdir/UrduLiveTranslator"
git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || echo $pkgver
}
build() {
cd "$srcdir/UrduLiveTranslator/frontend"
# Install frontend dependencies
npm install
# Build the React vite app
npm run build
# Package the electron app for Linux (dir format instead of AppImage makes it easier to bundle in /opt)
npx electron-builder --linux dir
}
package() {
# 1. Prepare installation directories
install -d "$pkgdir/opt/urdu-translator/frontend"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/usr/share/applications"
# 2. Copy the Frontend Electron Bundle
cp -r "$srcdir/UrduLiveTranslator/frontend/dist/linux-unpacked/"* "$pkgdir/opt/urdu-translator/frontend/"
# 3. Copy the Backend Source
# We copy everything in backend so the launcher script can venv/pip install on first run
cp -r "$srcdir/UrduLiveTranslator/backend" "$pkgdir/opt/urdu-translator/"
# Fix permissions
chmod -R 755 "$pkgdir/opt/urdu-translator"
# 4. Install the Desktop entry and Launcher Script
install -m 755 "$srcdir/urdu-translator.sh" "$pkgdir/usr/bin/urdu-translator"
install -m 644 "$srcdir/urdu-translator.desktop" "$pkgdir/usr/share/applications/"
# (Extra) Setup icon if you have one. You'll need to add it to your repo and install it here.
# install -Dm644 "$srcdir/UrduTranslator/icon.png" "$pkgdir/usr/share/pixmaps/urdu-translator.png"
}
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 |