gitea-cli
LOW
maintainer quantulr
0 votes
scanned 2026-10-24 17:41:05.329835
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: quantulr <35954003+quantulr@users.noreply.github.com>
2
pkgname=gitea-cli
3
pkgver=0.1.0
4
pkgrel=1
5
pkgdesc="Official Gitea CLI — Rework of tea cli (repos, issues, PRs, releases)"
6
arch=('x86_64' 'aarch64')
7
url="https://gitea.com/gitea/cli"
8
license=('MIT')
9
depends=('glibc')
10
makedepends=('go')
11
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
12
sha256sums=('b275325123c5cc68e45302cfd99d31259852ffdce21be711fe4872ac6bf8cc57')
13
14
build() {
15
cd cli
16
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
17
go build \
18
-ldflags "-X gitea.dev/cli/internal/version.Version=$pkgver" \
19
-o gt ./cmd/gt
20
# generate man pages and shell completions (dated to the release)
21
SOURCE_DATE_EPOCH=1792713600 go run ./tools/cli-docs --out docs/generated
22
}
23
24
check() {
25
cd cli
26
# tests assume single-column width for East Asian ambiguous runes
27
LC_ALL=C.UTF-8 go test ./...
28
}
29
30
package() {
31
cd cli
32
install -Dm755 gt "$pkgdir/usr/bin/gt"
33
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
34
install -Dm644 -t "$pkgdir/usr/share/man/man1/" docs/generated/man/*.1
35
install -Dm644 docs/generated/completion/gt.bash "$pkgdir/usr/share/bash-completion/completions/gt"
36
install -Dm644 docs/generated/completion/_gt "$pkgdir/usr/share/zsh/site-functions/_gt"
37
install -Dm644 docs/generated/completion/gt.fish "$pkgdir/usr/share/fish/vendor_completions.d/gt.fish"
38
install -Dm644 docs/generated/completion/gt.ps1 "$pkgdir/usr/share/powershell/Modules/gt/gt.ps1"
39
}
40
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-24 17:41:05 | Low | 1 |