profilecli
LOW
maintainer prochac
0 votes
scanned 2026-08-20 01:42:48.230657
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: Tomáš Karela Procházka <tomas.prochazka5d@gmail.com>
2
3
pkgname=profilecli
4
pkgver=2.2.1
5
pkgrel=1
6
pkgdesc='CLI for Grafana Pyroscope, the continuous profiling aggregation system'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/grafana/pyroscope'
9
license=('AGPL-3.0-only')
10
depends=('glibc')
11
makedepends=('go')
12
conflicts=('profilecli-bin')
13
source=("$pkgname-$pkgver.tar.gz::https://github.com/grafana/pyroscope/archive/refs/tags/v$pkgver.tar.gz")
14
sha256sums=('4865c37f47da0a7cb4176d7a1cae4b02b60413bc9510962360753f73e7258c7c')
15
16
_srcname="pyroscope-$pkgver"
17
# Upstream stamps the version into this package; see its Makefile GO_LDFLAGS.
18
_vprefix='github.com/grafana/pyroscope/v2/pkg/util/build'
19
20
prepare() {
21
cd "$_srcname"
22
go mod download
23
}
24
25
build() {
26
cd "$_srcname"
27
export CGO_CPPFLAGS="${CPPFLAGS}"
28
export CGO_CFLAGS="${CFLAGS}"
29
export CGO_CXXFLAGS="${CXXFLAGS}"
30
export CGO_LDFLAGS="${LDFLAGS}"
31
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
32
33
# Without the -X stamps `profilecli --version` reports an empty version.
34
# Revision/BuildDate are left unset: neither is knowable from a source
35
# tarball, and BuildDate would break reproducibility.
36
go build -o "$srcdir/$pkgname" \
37
-ldflags "-linkmode=external -X $_vprefix.Version=$pkgver -X $_vprefix.Branch=HEAD" \
38
./cmd/profilecli
39
40
# kingpin derives the completion function and `complete` target names from
41
# basename($0), so these must be generated from a binary already named
42
# `profilecli` — which is why build() writes to $srcdir under that name.
43
"$srcdir/$pkgname" --completion-script-bash >"$srcdir/$pkgname.bash"
44
"$srcdir/$pkgname" --completion-script-zsh >"$srcdir/_$pkgname"
45
}
46
47
check() {
48
cd "$_srcname"
49
go test ./cmd/profilecli/...
50
}
51
52
package() {
53
install -Dm755 "$srcdir/$pkgname" -t "$pkgdir/usr/bin"
54
55
install -Dm644 "$srcdir/$pkgname.bash" \
56
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
57
install -Dm644 "$srcdir/_$pkgname" \
58
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
59
60
install -Dm644 "$_srcname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
61
}
62
63
# vim:set ts=2 sw=2 et:
64
Changes since previous scan
--- PKGBUILD @ 2026-08-14 00:03+++ PKGBUILD @ 2026-08-20 01:42@@ -1,7 +1,7 @@ # Maintainer: Tomáš Karela Procházka <tomas.prochazka5d@gmail.com> pkgname=profilecli-pkgver=2.2.0+pkgver=2.2.1 pkgrel=1 pkgdesc='CLI for Grafana Pyroscope, the continuous profiling aggregation system' arch=('x86_64' 'aarch64')@@ -11,7 +11,7 @@ makedepends=('go') conflicts=('profilecli-bin') source=("$pkgname-$pkgver.tar.gz::https://github.com/grafana/pyroscope/archive/refs/tags/v$pkgver.tar.gz")-sha256sums=('67779f2b5cf3e1f74a1863e8e2512d58d2cda723ecb8515919ca874d6c13f4c7')+sha256sums=('4865c37f47da0a7cb4176d7a1cae4b02b60413bc9510962360753f73e7258c7c') _srcname="pyroscope-$pkgver" # Upstream stamps the version into this package; see its Makefile GO_LDFLAGS.Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-20 01:42:48 | Low | 1 |
| 2026-08-14 00:03:41 | Clean | 2 |
| 2026-08-13 01:25:20 | Low | 1 |