gotrust

LOW
maintainer yangtsesu 0 votes scanned 2026-10-27 11:47:37.152749
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: Yangtse Su <yangtsesu at gmail dot com>
2
3pkgname=gotrust
4pkgver=0.1.0
5pkgrel=1
6pkgdesc='Tray app for Sangfor aTrust gateways with local SOCKS5 and HTTP proxies'
7arch=('x86_64' 'aarch64')
8url='https://github.com/YangtseSu/goTrust'
9license=('AGPL-3.0-or-later')
10depends=('glibc' 'gtk3' 'libayatana-appindicator' 'hicolor-icon-theme')
11makedepends=('go' 'gcc')
12conflicts=('gotrust-git')
13options=('!debug')
14_srcdir="goTrust-$pkgver"
15
16source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
17sha256sums=('18e740429f218139257e169ae2e8a11968b4002f3ea982c58ed5332463e65eb6')
18
19prepare() {
20 cd "$_srcdir"
21 # Fetch the modules here so build() needs no network.
22 go mod download
23}
24
25build() {
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
36check() {
37 cd "$_srcdir"
38 go test ./...
39}
40
41package() {
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)SeverityRules
2026-10-27 11:47:37 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