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 /PKGBUILD | |
download | aur-13dfe98fdbc28ec13f90919b096dda9e35824479.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
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/ +} |