linux-legion
LOW
maintainer vitamindb
0 votes
scanned 2026-09-25 15:12:17.861096
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: Alexeyev Vitaly <vitamindbnfkz@gmail.com>
2
pkgname=linux-legion
3
pkgver=0.1.2
4
pkgrel=1
5
pkgdesc="Control center for Lenovo Legion laptops: power modes, fans, Spectrum RGB lighting, battery (Vantage for Linux)"
6
arch=('x86_64')
7
url="https://github.com/VitaminDB/linux-legion"
8
license=('MIT')
9
depends=('fontconfig' 'freetype2' 'libxkbcommon' 'wayland' 'vulkan-icd-loader' 'hicolor-icon-theme' 'gcc-libs' 'glibc')
10
optdepends=('libx11: X11 session' 'libxcursor: cursors in X11' 'nvidia-utils: NVIDIA GPU monitoring')
11
makedepends=('cargo' 'git')
12
options=('!lto' '!debug')
13
install=linux-legion.install
14
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
15
sha256sums=('4c465fc44a8c7cff800fc992bedbf9ac062db4b17da75e77c6f069ea92999f15')
16
17
prepare() {
18
cd "$pkgname-$pkgver"
19
export RUSTUP_TOOLCHAIN=stable
20
# syngui — git-зависимость; коммит закреплён в Cargo.lock
21
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
22
}
23
24
build() {
25
cd "$pkgname-$pkgver"
26
export RUSTUP_TOOLCHAIN=stable
27
export CARGO_TARGET_DIR=target
28
cargo build --frozen --release
29
}
30
31
check() {
32
cd "$pkgname-$pkgver"
33
export RUSTUP_TOOLCHAIN=stable
34
export CARGO_TARGET_DIR=target
35
cargo test --frozen --release
36
}
37
38
package() {
39
cd "$pkgname-$pkgver"
40
install -Dm755 target/release/linux_legion "$pkgdir/usr/bin/linux-legion"
41
install -Dm644 packaging/linux-legion.desktop "$pkgdir/usr/share/applications/linux-legion.desktop"
42
install -Dm644 packaging/70-linux-legion.rules "$pkgdir/usr/lib/udev/rules.d/70-linux-legion.rules"
43
install -Dm644 packaging/linux-legion-autoapply.service "$pkgdir/usr/lib/systemd/user/linux-legion-autoapply.service"
44
install -Dm644 assets/icon/linux-legion.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/linux-legion.svg"
45
for s in 16 32 48 64 128 256 512; do
46
install -Dm644 "assets/icon/linux-legion-$s.png" \
47
"$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/linux-legion.png"
48
done
49
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
50
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
51
}
52
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 15:12:17 | Low | 1 |