goquark-git
LOW
maintainer uright
0 votes
scanned 2026-10-31 15:58:34.921556
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
3
pkgname=goquark-git
4
pkgver=1.2.0.r0.g0cbc221
5
pkgrel=1
6
pkgdesc='Unofficial Quark Drive CLI/TUI/MCP client (git version)'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/ButterFuture/GoQuark'
9
license=('AGPL-3.0-only')
10
makedepends=('git' 'go>=1.26')
11
provides=("goquark=${pkgver}")
12
conflicts=('goquark')
13
options=('!lto')
14
source=("${pkgname}::git+${url}.git")
15
sha256sums=('SKIP')
16
17
pkgver() {
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
26
prepare() {
27
cd "$pkgname"
28
export GOPATH="$srcdir"
29
export GOTOOLCHAIN=local
30
go mod download -modcacherw
31
}
32
33
build() {
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
52
check() {
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
61
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-31 15:58:34 | Low | 1 |