teamcity-cli-git
LOW
maintainer YummierGravy
0 votes
scanned 2026-10-26 09:44:33.960329
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: YummierGravy
2
3
pkgname=teamcity-cli-git
4
pkgver=1.6.0.r1.g4ef45b2
5
pkgrel=1
6
pkgdesc='Command-line interface for JetBrains TeamCity (git version)'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/JetBrains/teamcity-cli'
9
license=('Apache-2.0')
10
makedepends=('git' 'go')
11
provides=("${pkgname%-git}")
12
conflicts=("${pkgname%-git}")
13
source=("${pkgname}::git+${url}.git")
14
sha256sums=('SKIP')
15
16
pkgver() {
17
cd "$pkgname"
18
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
19
}
20
21
prepare() {
22
cd "$pkgname"
23
export GOFLAGS="-mod=readonly"
24
go mod download
25
}
26
27
build() {
28
cd "$pkgname"
29
export CGO_ENABLED=0 DO_NOT_TRACK=1
30
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
31
go build \
32
-ldflags "-s -w -X github.com/JetBrains/teamcity-cli/internal/version.Version=${pkgver}" \
33
-o teamcity ./tc
34
35
./teamcity completion bash > teamcity.bash
36
./teamcity completion zsh > teamcity.zsh
37
./teamcity completion fish > teamcity.fish
38
}
39
40
check() {
41
cd "$pkgname"
42
go test ./internal/config ./internal/output
43
}
44
45
package() {
46
cd "$pkgname"
47
install -Dm755 teamcity -t "$pkgdir/usr/bin"
48
install -Dm644 teamcity.bash "$pkgdir/usr/share/bash-completion/completions/teamcity"
49
install -Dm644 teamcity.zsh "$pkgdir/usr/share/zsh/site-functions/_teamcity"
50
install -Dm644 teamcity.fish "$pkgdir/usr/share/fish/vendor_completions.d/teamcity.fish"
51
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
52
}
53
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-26 09:44:33 | Low | 1 |