zero-beat-git
LOW
maintainer sheyiyuan
0 votes
scanned 2026-10-21 09:31:11.007953
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: Sheyiyuan <sheyiyuantan90@qq.com>
2
pkgname=zero-beat-git
3
pkgver=0.4.1.r8.g048bd4a
4
pkgrel=1
5
pkgdesc="Terminal music player for NetEase Cloud Music and Bilibili (TUI)"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/Sheyiyuan/zero-beat"
8
license=('AGPL-3.0-only')
9
depends=('ffmpeg' 'alsa-lib' 'libpulse')
10
makedepends=('git' 'go')
11
provides=('zero-beat')
12
conflicts=('zero-beat')
13
options=(!strip !debug)
14
source=("git+${url}.git")
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd "$srcdir/zero-beat"
19
local _ver
20
_ver=$(git describe --tags --abbrev=0 2>/dev/null || echo v0.4.0)
21
printf '%s.r%s.g%s' \
22
"${_ver#v}" \
23
"$(git rev-list --count HEAD)" \
24
"$(git rev-parse --short HEAD)"
25
}
26
27
build() {
28
cd "$srcdir/zero-beat"
29
export CGO_ENABLED=0
30
local _ver="${pkgver%%.r*}"
31
go build -buildmode=pie -trimpath -buildvcs=false \
32
-ldflags "-s -w -bindnow -X main.version=${_ver}" \
33
-o zero ./cmd/zero
34
}
35
36
package() {
37
cd "$srcdir/zero-beat"
38
install -Dm755 zero "$pkgdir/usr/bin/zero"
39
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
40
install -d "$pkgdir/usr/share/doc/$pkgname"
41
install -m644 README.md THIRD_PARTY_NOTICES.md \
42
"$pkgdir/usr/share/doc/$pkgname/"
43
}
44
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 09:31:11 | Low | 1 |