lmm-api-go-git

LOW
maintainer lightjunction 0 votes scanned 2026-08-24 17:24:12.078683
View on AUR
Why flagged

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

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.

PKGBUILD

1# Maintainer: LIghtJUNction
2
3pkgname=lmm-api-go-git
4pkgver=0.1.20.r1291.g1db462ebe
5pkgrel=1
6pkgdesc='LMM API Go backend, native CLI, systemd service, and web frontend (git)'
7arch=('x86_64' 'aarch64')
8url='https://github.com/LIghtJUNction/api.lmm.best'
9license=('AGPL-3.0-only')
10depends=('ca-certificates' 'coreutils' 'libarchive' 'pacman' 'paru' 'sudo' 'systemd' 'tzdata' 'util-linux')
11makedepends=('bun' 'git' 'go>=1.25.1')
12optdepends=(
13 'postgresql: production database'
14 'valkey: cache, rate limiting, and login sessions'
15)
16source "${startdir:?}/lmm-api-cli-phase.sh"
17_lmm_cli_phase=$LMM_CLI_SOURCE_PHASE
18lmm_cli_phase_apply_metadata "$_lmm_cli_phase" "$pkgver" \
19 'lmm-api' 'lmm-api-bin' 'lmm-api-git' 'lmm-api-go' 'lmm-api-go-bin'
20# pkgver() runs after PKGBUILD evaluation; keep VCS provides unversioned so they
21# cannot retain the checked-in bootstrap version after the fetched commit moves.
22provides=('lmm-api' 'lmm-api-go')
23backup=('etc/lmm-api-go/lmm-api-go.env')
24options=('!strip')
25source=('lmm-api-go::git+https://github.com/LIghtJUNction/api.lmm.best.git#branch=main' 'lmm-api-cli-phase.sh')
26sha256sums=('SKIP' '2b93864b302a7901a4688fd5b7df9b7e262f193a666a915718f434db20054935')
27
28_source_pkgver_epoch=0.1.20
29
30pkgver() {
31 cd lmm-api-go || return
32 printf '%s.r%s.g%s' "$_source_pkgver_epoch" \
33 "$(git rev-list --count HEAD)" "$(git rev-parse --short=9 HEAD)"
34}
35
36build() {
37 cd lmm-api-go || return
38 bun install --frozen-lockfile
39 VITE_REACT_APP_VERSION="${pkgver}" bun run --filter @lmm/web build
40 (
41 cd apps/api-go || return
42 CGO_ENABLED=0 go build -trimpath \
43 -ldflags="-s -w -X github.com/LIghtJUNction/api.lmm.best/common.Version=${pkgver}" \
44 -o "${srcdir}/lmm-api-cli" .
45 )
46}
47
48package() {
49 local root="${srcdir}/lmm-api-go"
50 local shared="${root}/packaging/common/lmm-api"
51 local file
52
53 install -Dm0755 "${srcdir}/lmm-api-cli" "${pkgdir}/usr/bin/lmm-api"
54 lmm_cli_phase_install_compatibility_alias "$_lmm_cli_phase" "$pkgdir"
55 install -Dm0644 "${shared}/lmm-api.service" \
56 "${pkgdir}/usr/lib/systemd/system/lmm-api.service"
57 if [[ -f ${shared}/lmm-api-operator.sysusers ]]; then
58 [[ -f ${shared}/lmm-api-operator.tmpfiles && -f ${shared}/lmm-api-operator.sudoers ]] || return 1
59 install -Dm0644 "${shared}/lmm-api-operator.sysusers" \
60 "${pkgdir}/usr/lib/sysusers.d/lmm-api-operator.conf"
61 install -Dm0644 "${shared}/lmm-api-operator.tmpfiles" \
62 "${pkgdir}/usr/lib/tmpfiles.d/lmm-api-operator.conf"
63 install -Dm0440 "${shared}/lmm-api-operator.sudoers" \
64 "${pkgdir}/etc/sudoers.d/lmm-api-operator"
65 fi
66 install -Dm0600 "${shared}/lmm-api-go.env" \
67 "${pkgdir}/etc/lmm-api-go/lmm-api-go.env"
68
69 install -d -m0755 "${pkgdir}/usr/share/lmm-api-go/frontend-dist"
70 cp -R --no-preserve=ownership,mode,timestamps -- "${root}/apps/web/dist/." \
71 "${pkgdir}/usr/share/lmm-api-go/frontend-dist/"
72 find "${pkgdir}/usr/share/lmm-api-go/frontend-dist" -type d -exec chmod 0755 {} +
73 find "${pkgdir}/usr/share/lmm-api-go/frontend-dist" -type f -exec chmod 0644 {} +
74
75 for file in LICENSE NOTICE THIRD-PARTY-LICENSES.md; do
76 install -Dm0644 "${root}/${file}" "${pkgdir}/usr/share/licenses/${pkgname}/${file}"
77 done
78 git -C "${root}" rev-parse HEAD > "${srcdir}/REVISION"
79 install -Dm0644 "${srcdir}/REVISION" "${pkgdir}/usr/share/doc/${pkgname}/REVISION"
80}
81

Changes since previous scan

--- PKGBUILD @ 2026-08-14 00:03
+++ PKGBUILD @ 2026-08-24 17:24
@@ -1,30 +1,36 @@
# Maintainer: LIghtJUNction
pkgname=lmm-api-go-git
-pkgver=0.1.1.r73.g3c9b85967
+pkgver=0.1.20.r1291.g1db462ebe
pkgrel=1
pkgdesc='LMM API Go backend, native CLI, systemd service, and web frontend (git)'
arch=('x86_64' 'aarch64')
url='https://github.com/LIghtJUNction/api.lmm.best'
license=('AGPL-3.0-only')
-depends=('ca-certificates' 'systemd' 'tzdata')
+depends=('ca-certificates' 'coreutils' 'libarchive' 'pacman' 'paru' 'sudo' 'systemd' 'tzdata' 'util-linux')
makedepends=('bun' 'git' 'go>=1.25.1')
optdepends=(
'postgresql: production database'
'valkey: cache, rate limiting, and login sessions'
)
-provides=('lmm-api-go')
-conflicts=('lmm-api' 'lmm-api-bin' 'lmm-api-git' 'lmm-api-go' 'lmm-api-go-bin')
+source "${startdir:?}/lmm-api-cli-phase.sh"
+_lmm_cli_phase=$LMM_CLI_SOURCE_PHASE
+lmm_cli_phase_apply_metadata "$_lmm_cli_phase" "$pkgver" \
+ 'lmm-api' 'lmm-api-bin' 'lmm-api-git' 'lmm-api-go' 'lmm-api-go-bin'
+# pkgver() runs after PKGBUILD evaluation; keep VCS provides unversioned so they
+# cannot retain the checked-in bootstrap version after the fetched commit moves.
+provides=('lmm-api' 'lmm-api-go')
backup=('etc/lmm-api-go/lmm-api-go.env')
options=('!strip')
-source=('lmm-api-go::git+https://github.com/LIghtJUNction/api.lmm.best.git#branch=main')
-sha256sums=('SKIP')
+source=('lmm-api-go::git+https://github.com/LIghtJUNction/api.lmm.best.git#branch=main' 'lmm-api-cli-phase.sh')
+sha256sums=('SKIP' '2b93864b302a7901a4688fd5b7df9b7e262f193a666a915718f434db20054935')
+
+_source_pkgver_epoch=0.1.20
pkgver() {
cd lmm-api-go || return
- git describe --long --tags --abbrev=9 2>/dev/null | \
- sed -E 's/^v//; s/([^-]*-g)/r\1/; s/-/./g' || \
- printf '0.0.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=9 HEAD)"
+ printf '%s.r%s.g%s' "$_source_pkgver_epoch" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short=9 HEAD)"
}
build() {
@@ -34,8 +40,8 @@
(
cd apps/api-go || return
CGO_ENABLED=0 go build -trimpath \
- -ldflags="-s -w -X github.com/QuantumNous/new-api/common.Version=${pkgver}" \
- -o "${srcdir}/lmm-api-go" .
+ -ldflags="-s -w -X github.com/LIghtJUNction/api.lmm.best/common.Version=${pkgver}" \
+ -o "${srcdir}/lmm-api-cli" .
)
}
@@ -44,10 +50,19 @@
local shared="${root}/packaging/common/lmm-api"
local file
- install -Dm0755 "${srcdir}/lmm-api-go" "${pkgdir}/usr/bin/lmm-api-go"
- ln -s lmm-api-go "${pkgdir}/usr/bin/lmm-api"
+ install -Dm0755 "${srcdir}/lmm-api-cli" "${pkgdir}/usr/bin/lmm-api"
+ lmm_cli_phase_install_compatibility_alias "$_lmm_cli_phase" "$pkgdir"
install -Dm0644 "${shared}/lmm-api.service" \
"${pkgdir}/usr/lib/systemd/system/lmm-api.service"
+ if [[ -f ${shared}/lmm-api-operator.sysusers ]]; then
+ [[ -f ${shared}/lmm-api-operator.tmpfiles && -f ${shared}/lmm-api-operator.sudoers ]] || return 1
+ install -Dm0644 "${shared}/lmm-api-operator.sysusers" \
+ "${pkgdir}/usr/lib/sysusers.d/lmm-api-operator.conf"
+ install -Dm0644 "${shared}/lmm-api-operator.tmpfiles" \
+ "${pkgdir}/usr/lib/tmpfiles.d/lmm-api-operator.conf"
+ install -Dm0440 "${shared}/lmm-api-operator.sudoers" \
+ "${pkgdir}/etc/sudoers.d/lmm-api-operator"
+ fi
install -Dm0600 "${shared}/lmm-api-go.env" \
"${pkgdir}/etc/lmm-api-go/lmm-api-go.env"

Scan history

Scanned at (UTC)SeverityRules
2026-08-24 17:24:12 Low 1
2026-08-14 00:03:41 Clean 2
2026-08-13 05:25:33 Low 1

Report a package

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

0 / 4000
Your suggestion