lgtm-git

LOW
maintainer kunkka19xx 0 votes scanned 2026-09-04 17:58:35.171331
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: 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.
7pkgname=lgtm-git
8_pkgname=lgtm
9pkgver=0.0.0.r0.0000000
10pkgrel=1
11pkgdesc="Read what your coding agent just wrote, and point at the lines when you reply (git)"
12arch=('x86_64' 'aarch64')
13url="https://github.com/kunkka19xx/lgtm"
14license=('Apache-2.0')
15provides=('lgtm')
16conflicts=('lgtm' 'lgtm-bin')
17depends=('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.
20makedepends=('git' 'zig>=0.16.0')
21optdepends=('tmux: send references to an agent pane')
22source=("$_pkgname::git+$url.git")
23sha256sums=('SKIP')
24
25pkgver() {
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
43build() {
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
50check() {
51 cd "$srcdir/$_pkgname"
52 zig build test
53}
54
55package() {
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)SeverityRules
2026-09-04 17:58:35 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