Files
CosairRGBforCachy/packaging/PKGBUILD
T
MrBlakeandClaude Opus 5.5 133b80c83b Add pacman packaging and Gitea release script
PKGBUILD builds from the release tag and ships the udev rule;
packaging/release.sh tags, pushes, builds and publishes a release.
Keep .gitea-token out of git.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-23 21:11:29 +02:00

33 lines
1.3 KiB
Bash

# Maintainer: Louis <[email protected]>
pkgname=k65studio
pkgver=0.1.0
pkgrel=1
pkgdesc="Beleuchtung, Spielmodus, Akku und Profile für die Corsair K65 PLUS Wireless"
arch=('any')
url="https://git.mrblake.cc/MrBlake/CosairRGBforCachy"
license=('GPL-3.0-or-later')
depends=('python' 'pyside6')
makedepends=('git')
install=$pkgname.install
source=("$pkgname::git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')
package() {
cd "$srcdir/$pkgname"
install -d "$pkgdir/usr/share/$pkgname"
cp -r k65studio "$pkgdir/usr/share/$pkgname/"
find "$pkgdir/usr/share/$pkgname" -name __pycache__ -prune -exec rm -rf {} +
python -m compileall -q -d "/usr/share/$pkgname" "$pkgdir/usr/share/$pkgname"
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<EOF
#!/bin/sh
PYTHONPATH="/usr/share/$pkgname\${PYTHONPATH:+:\$PYTHONPATH}" exec python3 -m k65studio "\$@"
EOF
install -Dm644 packaging/60-k65studio.rules "$pkgdir/usr/lib/udev/rules.d/60-k65studio.rules"
install -Dm644 packaging/k65studio.desktop "$pkgdir/usr/share/applications/k65studio.desktop"
install -Dm644 k65studio/assets/k65studio.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/k65studio.svg"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}