lmm-api-go

maintainer lightjunction · 0 votes · scanned 2026-08-18 00:03:42.021799
LOW
View on AUR ↗
Why flagged The package builds from a git source on a project-owned GitHub repository with a known commit, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.

Triggered rules

LOW Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

LOW AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from a git source on a project-owned GitHub repository with a known commit, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.

PKGBUILD

1# Maintainer: LIghtJUNction
2
3pkgname=lmm-api-go
4pkgver=0.1.1.r376.g3cdab7e7f
5pkgrel=1
6pkgdesc='LMM API Go backend, native CLI, systemd service, and web frontend'
7arch=('x86_64' 'aarch64')
8url='https://github.com/LIghtJUNction/api.lmm.best'
9license=('AGPL-3.0-only')
10depends=('ca-certificates' 'systemd' 'tzdata')
11makedepends=('bun' 'git' 'go>=1.25.1')
12optdepends=(
13 'postgresql: production database'
14 'valkey: cache, rate limiting, and login sessions'
15)
16conflicts=('lmm-api' 'lmm-api-bin' 'lmm-api-git' 'lmm-api-go-bin' 'lmm-api-go-git')
17backup=('etc/lmm-api-go/lmm-api-go.env')
18options=('!strip')
19
20_commit=3cdab7e7f7c5c5788fa1f9b904671da5ce379c1a
21source=("lmm-api-go::git+${url}.git#commit=${_commit}")
22sha256sums=('SKIP')
23
24build() {
25 cd lmm-api-go || return
26 bun install --frozen-lockfile
27 VITE_REACT_APP_VERSION="${pkgver}" bun run --filter @lmm/web build
28 (
29 cd apps/api-go || return
30 CGO_ENABLED=0 go build -trimpath \
31 -ldflags="-s -w -X github.com/QuantumNous/new-api/common.Version=${pkgver}" \
32 -o "${srcdir}/lmm-api-go-bin" .
33 )
34}
35
36package() {
37 local root="${srcdir}/lmm-api-go"
38 local shared="${root}/packaging/common/lmm-api"
39 local file
40
41 install -Dm0755 "${srcdir}/lmm-api-go-bin" "${pkgdir}/usr/bin/lmm-api-go"
42 ln -s lmm-api-go "${pkgdir}/usr/bin/lmm-api"
43 install -Dm0644 "${shared}/lmm-api.service" \
44 "${pkgdir}/usr/lib/systemd/system/lmm-api.service"
45 install -Dm0600 "${shared}/lmm-api-go.env" \
46 "${pkgdir}/etc/lmm-api-go/lmm-api-go.env"
47
48 install -d -m0755 "${pkgdir}/usr/share/lmm-api-go/frontend-dist"
49 cp -R --no-preserve=ownership,mode,timestamps -- "${root}/apps/web/dist/." \
50 "${pkgdir}/usr/share/lmm-api-go/frontend-dist/"
51 find "${pkgdir}/usr/share/lmm-api-go/frontend-dist" -type d -exec chmod 0755 {} +
52 find "${pkgdir}/usr/share/lmm-api-go/frontend-dist" -type f -exec chmod 0644 {} +
53
54 for file in LICENSE NOTICE THIRD-PARTY-LICENSES.md; do
55 install -Dm0644 "${root}/${file}" "${pkgdir}/usr/share/licenses/${pkgname}/${file}"
56 done
57 printf '%s\n' "${_commit}" >"${srcdir}/REVISION"
58 install -Dm0644 "${srcdir}/REVISION" "${pkgdir}/usr/share/doc/${pkgname}/REVISION"
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-08-18 00:03:42 LOW 2
2026-08-17 00:18:29 LOW 2
2026-08-16 00:03:42 LOW 2
2026-08-15 00:26:13 LOW 2
2026-08-14 00:03:41 LOW 2
2026-08-13 05:25:33 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