vk-sagittarius
LOW
maintainer AnOP
0 votes
scanned 2026-10-25 01:41:32.578424
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: lubuoren <lubuoren@users.noreply.github.com>
2
# 从 VAIKYRIE.exe 逆向后重写的 Linux 版:.NET 10 + Avalonia。
3
# 说明:
4
# * 构建期需要联网做一次 NuGet 还原(Avalonia 11.3.22 等),这是 .NET 项目的常态;
5
# * 用 self-contained 发布,装完不依赖 dotnet-runtime,代价是体积大一些;
6
# * 运行时按需:udisks2(LCD 换背景要挂载 U 盘)、parec/pw-cat(音频电平灯效)。
7
8
pkgname=vk-sagittarius
9
pkgver=1.0.7
10
pkgrel=1
11
pkgdesc="VK Sagittarius control center (LCD telemetry, ARGB lighting, 4-channel fan curves) for Linux"
12
arch=('x86_64')
13
url="https://github.com/lubuoren/vk-sagittarius"
14
license=('MIT')
15
depends=(
16
'glibc'
17
'fontconfig'
18
'freetype2'
19
'harfbuzz'
20
'libx11'
21
'libice'
22
'libsm'
23
'libxext'
24
'libxrandr'
25
'libxi'
26
'libxcursor'
27
'mesa'
28
)
29
makedepends=('dotnet-sdk')
30
optdepends=(
31
'udisks2: LCD 换背景时自动挂载设备切出的 U 盘'
32
'pulseaudio: parec 提供音频电平(声显频谱灯效)'
33
'pipewire: pw-cat 提供音频电平(声显频谱灯效)'
34
)
35
options=('!strip') # .NET 程序 strip 后会损坏调试信息与部分元数据
36
source=("$pkgname-$pkgver.tar.gz::https://github.com/lubuoren/vk-sagittarius/archive/refs/tags/v$pkgver.tar.gz")
37
sha256sums=('582401b07f34071cf4433b98e151abad0cfa45254a36828bef4199e43d2670a5')
38
39
build() {
40
cd "$srcdir/$pkgname-$pkgver"
41
42
export DOTNET_CLI_TELEMETRY_OPTOUT=1
43
export DOTNET_NOLOGO=1
44
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
45
46
# 单测先跑一遍,挂了就别打包
47
dotnet test dotnet/tests/VkSagittarius.Tests/VkSagittarius.Tests.csproj -c Release
48
49
# 先发布后台守护进程,再发布 GUI;两者共用同一个自包含运行时目录
50
dotnet publish dotnet/src/VkSagittarius.Daemon/VkSagittarius.Daemon.csproj \
51
-c Release \
52
-r linux-x64 \
53
--self-contained true \
54
-p:ContinuousIntegrationBuild=true \
55
-p:DeterministicSourcePaths=true \
56
-p:DebugType=none \
57
-p:DebugSymbols=false \
58
-p:PathMap="$srcdir=/build" \
59
-o "$srcdir/out"
60
61
dotnet publish dotnet/src/VkSagittarius.App/VkSagittarius.App.csproj \
62
-c Release \
63
-r linux-x64 \
64
--self-contained true \
65
-p:ContinuousIntegrationBuild=true \
66
-p:DeterministicSourcePaths=true \
67
-p:DebugType=none \
68
-p:DebugSymbols=false \
69
-p:PathMap="$srcdir=/build" \
70
-o "$srcdir/out"
71
}
72
73
package() {
74
cd "$srcdir/$pkgname-$pkgver"
75
76
install -d "$pkgdir/opt/$pkgname"
77
cp -a "$srcdir/out/." "$pkgdir/opt/$pkgname/"
78
chmod +x "$pkgdir/opt/$pkgname/VkSagittarius.App" "$pkgdir/opt/$pkgname/VkSagittarius.Daemon"
79
ln -sf "VkSagittarius.Daemon" "$pkgdir/opt/$pkgname/vksagd"
80
81
install -d "$pkgdir/usr/bin"
82
ln -s "/opt/$pkgname/VkSagittarius.App" "$pkgdir/usr/bin/$pkgname"
83
ln -s "/opt/$pkgname/vksagd" "$pkgdir/usr/bin/vksagd"
84
85
# udev:让 /dev/hidraw* 对当前登录用户可写,免 sudo
86
install -Dm644 packaging/99-vk-sagittarius.rules \
87
"$pkgdir/usr/lib/udev/rules.d/99-vk-sagittarius.rules"
88
89
# desktop 入口:Exec/Icon 改成包内路径
90
install -d "$pkgdir/usr/share/applications"
91
sed -e 's|^Exec=.*|Exec=/usr/bin/vk-sagittarius|' \
92
-e 's|^Icon=.*|Icon=vk-sagittarius|' \
93
packaging/vk-sagittarius.desktop \
94
> "$pkgdir/usr/share/applications/vk-sagittarius.desktop"
95
96
install -Dm644 packaging/icon.png \
97
"$pkgdir/usr/share/icons/hicolor/256x256/apps/vk-sagittarius.png"
98
99
# 只跑心跳、不开窗口的常驻模式
100
install -Dm644 packaging/vk-sagittarius.service \
101
"$pkgdir/usr/lib/systemd/user/vk-sagittarius.service"
102
103
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
104
}
105
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-25 01:41:32 | Low | 1 |