feat: add corsairctl package (tag-build)
Build and publish packages / build-and-publish (push) Failing after 1m2s

This commit is contained in:
2026-06-10 18:58:19 +02:00
parent c68785fc71
commit 4fd0310818
2 changed files with 48 additions and 0 deletions
+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"
}