lgtm-git
LOW
maintainer kunkka19xx
0 votes
scanned 2026-09-04 17:58:35.171331
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: kunkka19xx <nobita079x@gmail.com>
2
# SPDX-License-Identifier: Apache-2.0
3
#
4
# Builds `main`. This is the package that catches breakage early: it compiles
5
# from source with the pinned Zig, so a std change that a tagged binary would
6
# hide shows up here first.
7
pkgname=lgtm-git
8
_pkgname=lgtm
9
pkgver=0.0.0.r0.0000000
10
pkgrel=1
11
pkgdesc="Read what your coding agent just wrote, and point at the lines when you reply (git)"
12
arch=('x86_64' 'aarch64')
13
url="https://github.com/kunkka19xx/lgtm"
14
license=('Apache-2.0')
15
provides=('lgtm')
16
conflicts=('lgtm' 'lgtm-bin')
17
depends=('git')
18
# Pinned, the same way .zigversion and build.zig.zon's minimum_zig_version are:
19
# Zig is pre-1.0 and a minor bump is a breaking change.
20
makedepends=('git' 'zig>=0.16.0')
21
optdepends=('tmux: send references to an agent pane')
22
source=("$_pkgname::git+$url.git")
23
sha256sums=('SKIP')
24
25
pkgver() {
26
cd "$srcdir/$_pkgname"
27
# <last tag>.r<commits since>.<short sha>, the AUR's convention for a VCS
28
# package - and it sorts correctly against the tagged `-bin`.
29
#
30
# The describe is captured before it is filtered, not piped into one: in
31
# `git describe | sed || fallback` the `||` sees *sed's* status, and sed
32
# succeeds on empty input - so an untagged clone produced an empty pkgver
33
# and makepkg refused the whole build. Which is the state this repository
34
# was in until v0.1.0, and will be again in any shallow clone.
35
local desc
36
if desc="$(git describe --long --tags --abbrev=7 2>/dev/null)" && [[ -n "$desc" ]]; then
37
printf '%s' "$desc" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
38
else
39
printf '0.0.0.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
40
fi
41
}
42
43
build() {
44
cd "$srcdir/$_pkgname"
45
# The same step the release workflow runs, so a source build and a downloaded
46
# binary are the same binary.
47
zig build dist --prefix "$srcdir/out"
48
}
49
50
check() {
51
cd "$srcdir/$_pkgname"
52
zig build test
53
}
54
55
package() {
56
install -Dm755 "$srcdir/out/bin/lgtm" "$pkgdir/usr/bin/lgtm"
57
install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
58
}
59
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-04 17:58:35 | Low | 1 |