linux-legion

LOW
maintainer vitamindb 0 votes scanned 2026-09-25 15:12:17.861096
View on AUR
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>
2pkgname=linux-legion
3pkgver=0.1.2
4pkgrel=1
5pkgdesc="Control center for Lenovo Legion laptops: power modes, fans, Spectrum RGB lighting, battery (Vantage for Linux)"
6arch=('x86_64')
7url="https://github.com/VitaminDB/linux-legion"
8license=('MIT')
9depends=('fontconfig' 'freetype2' 'libxkbcommon' 'wayland' 'vulkan-icd-loader' 'hicolor-icon-theme' 'gcc-libs' 'glibc')
10optdepends=('libx11: X11 session' 'libxcursor: cursors in X11' 'nvidia-utils: NVIDIA GPU monitoring')
11makedepends=('cargo' 'git')
12options=('!lto' '!debug')
13install=linux-legion.install
14source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
15sha256sums=('4c465fc44a8c7cff800fc992bedbf9ac062db4b17da75e77c6f069ea92999f15')
16
17prepare() {
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
24build() {
25 cd "$pkgname-$pkgver"
26 export RUSTUP_TOOLCHAIN=stable
27 export CARGO_TARGET_DIR=target
28 cargo build --frozen --release
29}
30
31check() {
32 cd "$pkgname-$pkgver"
33 export RUSTUP_TOOLCHAIN=stable
34 export CARGO_TARGET_DIR=target
35 cargo test --frozen --release
36}
37
38package() {
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)SeverityRules
2026-09-25 15:12:17 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion