feat: add corsairctl package (tag-build)

This commit is contained in:
nevaforget committed 2026-06-10 19:05:03 +02:00
1 parent a7181feb6d
commit 153afcf491
2 files changed
+48

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
pkgbase = corsairctl
pkgdesc = CLI tool for Corsair Bragi-protocol devices (HS80 RGB Wireless, etc.)
pkgver = 0.1.2
pkgrel = 1
url = https://gitea.moonarch.de/nevaforget/corsairctl
arch = x86_64
license = MIT
makedepends = cargo
makedepends = pkg-config
depends = hidapi
depends = alsa-lib
source = git+https://gitea.moonarch.de/nevaforget/corsairctl.git#tag=v0.1.2
sha256sums = SKIP
pkgname = corsairctl
+33
View File
@@ -0,0 +1,33 @@
# Maintainer: nevaforget <dom@moonarch.de>
pkgname=corsairctl
pkgver=0.1.2
pkgrel=1
pkgdesc='CLI tool for Corsair Bragi-protocol devices (HS80 RGB Wireless, etc.)'
arch=('x86_64')
url='https://gitea.moonarch.de/nevaforget/corsairctl'
license=('MIT')
depends=('hidapi' 'alsa-lib')
makedepends=('cargo' 'pkg-config')
source=("git+${url}.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "$pkgname"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm755 "scripts/corsairctl-waybar.sh" "$pkgdir/usr/bin/corsairctl-waybar"
install -Dm644 "udev/99-corsair.rules" "$pkgdir/usr/lib/udev/rules.d/99-corsair.rules"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}