Created
February 15, 2021 01:40
-
-
Save nyanpasu64/52a05e53da220b299e6ba99fb1c229dc to your computer and use it in GitHub Desktop.
rgb_keyboard PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: dokutan <???> | |
# Contributor: nyanpasu64 <nyanpasu64 at tuta dot io> | |
pkgname=rgb_keyboard-git | |
_pkgbare="${pkgname%-git}" | |
pkgver=0.2.r1.g28611e0 | |
pkgrel=1 | |
pkgdesc="Controls the RGB lighting on some keyboards (GMMK and others)." | |
arch=(x86_64) | |
url="https://github.com/dokutan/rgb_keyboard" | |
license=('GPL3') | |
depends=('libusb' 'gcc-libs') | |
makedepends=('git') | |
provides=("$_pkgbare") | |
conflicts=("$_pkgbare") | |
source=("git+https://github.com/dokutan/rgb_keyboard.git") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "$_pkgbare" | |
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$_pkgbare" | |
make | |
} | |
package() { | |
cd "$_pkgbare" | |
mkdir -p $pkgdir/usr/bin \ | |
$pkgdir/usr/share/man/man1 \ | |
$pkgdir/usr/share/doc/rgb_keyboard \ | |
$pkgdir/etc/udev/rules.d | |
cp ./rgb_keyboard $pkgdir/usr/bin/rgb_keyboard && \ | |
cp ./keyboard.rules $pkgdir/etc/udev/rules.d && \ | |
cp ./examples/* $pkgdir/usr/share/doc/rgb_keyboard/ && \ | |
cp ./README.md $pkgdir/usr/share/doc/rgb_keyboard/ && \ | |
cp ./rgb_keyboard.1 $pkgdir/usr/share/man/man1/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment