goquark-git

LOW
maintainer uright 0 votes scanned 2026-10-31 15:58:34.921556
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: uright <admin at uright dot icu>
2
3pkgname=goquark-git
4pkgver=1.2.0.r0.g0cbc221
5pkgrel=1
6pkgdesc='Unofficial Quark Drive CLI/TUI/MCP client (git version)'
7arch=('x86_64' 'aarch64')
8url='https://github.com/ButterFuture/GoQuark'
9license=('AGPL-3.0-only')
10makedepends=('git' 'go>=1.26')
11provides=("goquark=${pkgver}")
12conflicts=('goquark')
13options=('!lto')
14source=("${pkgname}::git+${url}.git")
15sha256sums=('SKIP')
16
17pkgver() {
18 cd "$pkgname"
19 ( set -o pipefail
20 git describe --long --tags --abbrev=7 2>/dev/null |
21 sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
22 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
23 )
24}
25
26prepare() {
27 cd "$pkgname"
28 export GOPATH="$srcdir"
29 export GOTOOLCHAIN=local
30 go mod download -modcacherw
31}
32
33build() {
34 cd "$pkgname"
35 # Upstream ships fully static binaries (CGO_ENABLED=0); keep that, but build
36 # the executable itself as a PIE with -trimpath for hardening.
37 export CGO_ENABLED=0
38 export GOPATH="$srcdir"
39 export GOTOOLCHAIN=local
40 export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
41 export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
42
43 local _commit _builddate
44 _commit="$(git rev-parse --short=7 HEAD)"
45 _builddate="$(date -u -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%dT%H:%M:%SZ)"
46
47 go build -buildvcs=false \
48 -ldflags "-s -w -X main.Version=${pkgver} -X main.Commit=${_commit} -X main.BuildDate=${_builddate}" \
49 -o goquark ./cmd/goquark
50}
51
52check() {
53 cd "$pkgname"
54 export CGO_ENABLED=0
55 export GOPATH="$srcdir"
56 export GOTOOLCHAIN=local
57 export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
58 go test ./...
59}
60
61package() {
62 cd "$pkgname"
63 install -Dm755 goquark "$pkgdir/usr/bin/goquark"
64 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
65
66 install -d "$pkgdir/usr/share/doc/$pkgname"
67 install -m644 README.md README.en.md docs/CHANGELOG.md docs/ACKNOWLEDGMENTS.md \
68 docs/DISCLAIMER.md "$pkgdir/usr/share/doc/$pkgname/"
69}
70

Scan history

Scanned at (UTC)SeverityRules
2026-10-31 15:58:34 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