gotrust
LOW
maintainer yangtsesu
0 votes
scanned 2026-10-27 11:47:37.152749
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: Yangtse Su <yangtsesu at gmail dot com>
2
3
pkgname=gotrust
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc='Tray app for Sangfor aTrust gateways with local SOCKS5 and HTTP proxies'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/YangtseSu/goTrust'
9
license=('AGPL-3.0-or-later')
10
depends=('glibc' 'gtk3' 'libayatana-appindicator' 'hicolor-icon-theme')
11
makedepends=('go' 'gcc')
12
conflicts=('gotrust-git')
13
options=('!debug')
14
_srcdir="goTrust-$pkgver"
15
16
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
17
sha256sums=('18e740429f218139257e169ae2e8a11968b4002f3ea982c58ed5332463e65eb6')
18
19
prepare() {
20
cd "$_srcdir"
21
# Fetch the modules here so build() needs no network.
22
go mod download
23
}
24
25
build() {
26
cd "$_srcdir"
27
# cgo is only for the external linker, which applies FULL RELRO; GTK and the
28
# tray are loaded through purego at runtime, so no cgo code runs.
29
CGO_ENABLED=1 go build \
30
-trimpath \
31
-buildmode=pie \
32
-ldflags "-s -w -linkmode=external -extldflags=-Wl,-z,relro,-z,now -X github.com/YangtseSu/goTrust/internal/version.Version=$pkgver" \
33
-o gotrust ./cmd/gotrust
34
}
35
36
check() {
37
cd "$_srcdir"
38
go test ./...
39
}
40
41
package() {
42
cd "$_srcdir"
43
install -Dm755 gotrust "$pkgdir/usr/bin/gotrust"
44
45
# The desktop entry and the icons ship with the source tree.
46
install -Dm644 data/gotrust.desktop \
47
"$pkgdir/usr/share/applications/gotrust.desktop"
48
install -Dm644 data/icons/hicolor/scalable/apps/gotrust.svg \
49
"$pkgdir/usr/share/icons/hicolor/scalable/apps/gotrust.svg"
50
install -Dm644 data/icons/hicolor/symbolic/apps/gotrust-symbolic.svg \
51
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/gotrust-symbolic.svg"
52
53
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
54
}
55
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 11:47:37 | Low | 1 |