mygo-cloudmusic
LOW
maintainer xmengnet
0 votes
scanned 2026-10-26 15:45:54.756943
Why flagged
The package builds from source using a tagged GitHub release, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
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.
Low
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from source using a tagged GitHub release, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
PKGBUILD
1
# Maintainer: xmengnet <my@liyp.cc>
2
3
pkgname=mygo-cloudmusic
4
pkgver=0.1.13
5
pkgrel=2
6
pkgdesc='MyGo 云音乐 - 第三方网易云音乐原生客户端'
7
arch=('x86_64' 'aarch64')
8
url='https://music.egoist.dev'
9
license=('AGPL-3.0-only')
10
depends=('gtk3' 'libsecret')
11
optdepends=(
12
'libpulse: PulseAudio 音频输出'
13
'alsa-lib: ALSA 音频输出(PulseAudio 不可用时)'
14
)
15
makedepends=('go' 'gcc' 'git')
16
options=('!debug')
17
18
source=("git+https://github.com/egoist/mygo-cloudmusic.git#tag=v${pkgver}")
19
sha256sums=('SKIP')
20
21
_srcname=mygo-cloudmusic
22
23
if [[ $CARCH == x86_64 ]]; then
24
_goarch=amd64
25
elif [[ $CARCH == aarch64 ]]; then
26
_goarch=arm64
27
else
28
echo "Unsupported architecture: $CARCH" >&2
29
exit 1
30
fi
31
32
build() {
33
cd "${_srcname}"
34
35
# cgo and external linking, as Arch's Go packages do, for a PIE with
36
# full RELRO; mygo build passes MYGO_LDFLAGS through last.
37
export CGO_ENABLED=1
38
export GOFLAGS="-buildvcs=false -buildmode=pie"
39
# The hardening flags Arch builds with, kept free of spaces: mygo build
40
# re-quotes the value of -extldflags.
41
export MYGO_LDFLAGS="-linkmode=external -extldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,pack-relative-relocs"
42
43
# Writes the executable, its desktop entry and icons, and a Debian
44
# package carrying the 256 and 512 icons hicolor registers.
45
go tool mygo build -platform "linux/${_goarch}" -o "${srcdir}/build"
46
}
47
48
package() {
49
cd "${_srcname}"
50
51
local _stage="${srcdir}/build/linux-${_goarch}"
52
local _deb="mygo-cloudmusic_${pkgver}_${_goarch}.deb"
53
54
install -Dm755 "${_stage}/mygo-cloudmusic" "${pkgdir}/usr/bin/mygo-cloudmusic"
55
56
install -Dm644 "${_stage}/mygo-cloudmusic.desktop" \
57
"${pkgdir}/usr/share/applications/mygo-cloudmusic.desktop"
58
59
mkdir -p "${srcdir}/deb"
60
bsdtar -xf "${_stage}/${_deb}" -C "${srcdir}/deb" data.tar.gz
61
bsdtar -xf "${srcdir}/deb/data.tar.gz" -C "${srcdir}/deb"
62
for _size in 256 512; do
63
install -Dm644 "${srcdir}/deb/usr/share/icons/hicolor/${_size}x${_size}/apps/mygo-cloudmusic.png" \
64
"${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/apps/mygo-cloudmusic.png"
65
done
66
67
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-26 15:45:54 | Low | 2 |