diff options
author | dokutan | 2021-02-15 16:17:04 +0100 |
---|---|---|
committer | dokutan | 2021-02-15 16:17:04 +0100 |
commit | 13dfe98fdbc28ec13f90919b096dda9e35824479 (patch) | |
tree | e27910532e3c54745939870e8ffb1b8d0a1f1921 | |
download | aur-rgb_keyboard-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..243b5dd73ab3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = rgb_keyboard-git + pkgdesc = Controls the RGB lighting on some keyboards (GMMK and others). + pkgver = 0.2.r1.g28611e0 + pkgrel = 1 + url = https://github.com/dokutan/rgb_keyboard + arch = x86_64 + license = GPL3 + makedepends = git + depends = libusb + depends = gcc-libs + provides = rgb_keyboard + conflicts = rgb_keyboard + source = git+https://github.com/dokutan/rgb_keyboard.git + sha256sums = SKIP + +pkgname = rgb_keyboard-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9fef6c4d36be --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: dokutan <dokutan at tutanota dot com> +# 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/ +} |