gostc
LOW
maintainer yjun
0 votes
scanned 2026-10-31 11:58:11.931447
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: yjun <jerrysteve1101 at gmail dot com>
2
3
pkgname=gostc
4
pkgver=2.0.11
5
pkgrel=1
6
pkgdesc='frp-based NAT traversal management client'
7
arch=('x86_64' 'aarch64' 'armv7h')
8
url='https://github.com/SianHH/gostc-open'
9
license=('Apache-2.0')
10
depends=('glibc')
11
makedepends=('go')
12
source=(
13
"$pkgname-$pkgver.tar.gz::https://github.com/SianHH/gostc-open/archive/refs/tags/v$pkgver.tar.gz"
14
)
15
sha256sums=(
16
'941d1bd9e76480afa6b2abd373582252e2d530fbed654b2f843a824637e81a71'
17
)
18
19
prepare() {
20
cd "gostc-open-$pkgver/client"
21
export GOPATH="${srcdir}"
22
# Keep the module cache inside the build environment.
23
go mod download -modcacherw
24
}
25
26
build() {
27
cd "gostc-open-$pkgver/client"
28
export CGO_ENABLED=0
29
export GOPATH="${srcdir}"
30
export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
31
# Upstream goreleaser config only adds -s -w (stripped by pacman anyway);
32
# bypass the Makefile and honor the Arch hardening flags instead.
33
go build -o build/gostc ./cli/
34
}
35
36
package() {
37
cd "gostc-open-$pkgver/client"
38
install -Dm755 build/gostc "$pkgdir/usr/bin/gostc"
39
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
40
}
41
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-31 11:58:11 | Low | 1 |