Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: g810-led-0.3.4
Date: Tue, 18 Jun 2019 16:09:29 +0200	[thread overview]
Message-ID: <20190618140929.VZwqZ83HbgPf1BRMXRd9YU5hXMrRoEW1lgekFKdYzFA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12521@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

There is an updated pull request by misuchiru03 against master on the void-packages repository

https://github.com/misuchiru03/void-packages g810-led-0.3.4
https://github.com/void-linux/void-packages/pull/12521

New package: g810-led-0.3.4
In response to this [request](https://github.com/void-linux/void-packages/issues/12431)

A patch file from https://github.com/void-linux/void-packages/pull/12521.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-g810-led-0.3.4-12521.patch --]
[-- Type: application/text/x-diff, Size: 3824 bytes --]

From c4e8cedb04103d970b9f3cb38b8b4ce52ede0bba Mon Sep 17 00:00:00 2001
From: Alex Childs <misuchiru03+void@gmail.com>
Date: Mon, 17 Jun 2019 20:52:03 -0500
Subject: [PATCH] New package: g810-led-0.3.4

---
 srcpkgs/g810-led/patches/musl.patch | 50 +++++++++++++++++++++++++++++
 srcpkgs/g810-led/template           | 20 ++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/g810-led/patches/musl.patch
 create mode 100644 srcpkgs/g810-led/template

diff --git a/srcpkgs/g810-led/patches/musl.patch b/srcpkgs/g810-led/patches/musl.patch
new file mode 100644
index 00000000000..e29901130eb
--- /dev/null
+++ b/srcpkgs/g810-led/patches/musl.patch
@@ -0,0 +1,50 @@
+--- src/classes/Keyboard.h.orig
++++ src/classes/Keyboard.h
+@@ -45,17 +45,17 @@
+ 	public:
+ 		
+ 		std::vector<std::vector<uint16_t>> SupportedKeyboards = {
+-			{ 0x46d, 0xc336, (u_int16_t)KeyboardModel::g213 },
+-			{ 0x46d, 0xc330, (u_int16_t)KeyboardModel::g410 },
+-			{ 0x46d, 0xc33a, (u_int16_t)KeyboardModel::g413 },
+-			{ 0x46d, 0xc33c, (u_int16_t)KeyboardModel::g513 },
+-			{ 0x46d, 0xc333, (u_int16_t)KeyboardModel::g610 },
+-			{ 0x46d, 0xc338, (u_int16_t)KeyboardModel::g610 },
+-			{ 0x46d, 0xc331, (u_int16_t)KeyboardModel::g810 },
+-			{ 0x46d, 0xc337, (u_int16_t)KeyboardModel::g810 },
+-			{ 0x46d, 0xc32b, (u_int16_t)KeyboardModel::g910 },
+-			{ 0x46d, 0xc335, (u_int16_t)KeyboardModel::g910 },
+-			{ 0x46d, 0xc339, (u_int16_t)KeyboardModel::gpro }
++			{ 0x46d, 0xc336, (uint16_t)KeyboardModel::g213 },
++			{ 0x46d, 0xc330, (uint16_t)KeyboardModel::g410 },
++			{ 0x46d, 0xc33a, (uint16_t)KeyboardModel::g413 },
++			{ 0x46d, 0xc33c, (uint16_t)KeyboardModel::g513 },
++			{ 0x46d, 0xc333, (uint16_t)KeyboardModel::g610 },
++			{ 0x46d, 0xc338, (uint16_t)KeyboardModel::g610 },
++			{ 0x46d, 0xc331, (uint16_t)KeyboardModel::g810 },
++			{ 0x46d, 0xc337, (uint16_t)KeyboardModel::g810 },
++			{ 0x46d, 0xc32b, (uint16_t)KeyboardModel::g910 },
++			{ 0x46d, 0xc335, (uint16_t)KeyboardModel::g910 },
++			{ 0x46d, 0xc339, (uint16_t)KeyboardModel::gpro }
+ 		};
+ 		
+ 		enum class KeyboardModel : uint8_t {
+--- src/main.cpp.orig
++++ src/main.cpp
+@@ -280,13 +280,13 @@
+ 			if (! utils::parseUInt8(argv[argIndex + 1], kbdProtocol)) return 1;
+ 			switch(kbdProtocol) {
+ 				case 1:
+-					kbd.SupportedKeyboards = { { vendorID, productID, (u_int16_t)LedKeyboard::KeyboardModel::g810 } };
++					kbd.SupportedKeyboards = { { vendorID, productID, (uint16_t)LedKeyboard::KeyboardModel::g810 } };
+ 					break;
+ 				case 2:
+-					kbd.SupportedKeyboards = { { vendorID, productID, (u_int16_t)LedKeyboard::KeyboardModel::g910 } };
++					kbd.SupportedKeyboards = { { vendorID, productID, (uint16_t)LedKeyboard::KeyboardModel::g910 } };
+ 					break;
+ 				case 3:
+-					kbd.SupportedKeyboards = { { vendorID, productID, (u_int16_t)LedKeyboard::KeyboardModel::g213 } };
++					kbd.SupportedKeyboards = { { vendorID, productID, (uint16_t)LedKeyboard::KeyboardModel::g213 } };
+ 					break;
+ 				default:
+ 					break;
diff --git a/srcpkgs/g810-led/template b/srcpkgs/g810-led/template
new file mode 100644
index 00000000000..9622cf799cb
--- /dev/null
+++ b/srcpkgs/g810-led/template
@@ -0,0 +1,20 @@
+# Template file for 'g810-led'
+pkgname=g810-led
+version=0.3.4
+revision=1
+build_style=gnu-makefile
+makedepends="hidapi-devel"
+short_desc="LED controller for Logitech G213,410,512,610,810,910,PRO keyboards"
+maintainer="Alex Childs <misuchiru03+void@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/MatMoul/g810-led/"
+distfiles="https://github.com/MatMoul/g810-led/archive/v${version}.tar.gz"
+checksum=6737d184fafcadcfd2e86d2cc6c92efb910f4abe97eebf6c52b0de9ab6864972
+
+do_install() {
+	vbin bin/g810-led
+	vmkdir usr/lib
+	vcopy "lib/*.so.*" usr/lib
+	vdoc README.md
+	vdoc INSTALL.md
+}

  parent reply	other threads:[~2019-06-18 14:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18  3:10 [PR PATCH] New packge: g810-led-0.3.4 voidlinux-github
2019-06-18  3:19 ` [PR PATCH] [Updated] New package: g810-led-0.3.4 voidlinux-github
2019-06-18  3:19 ` voidlinux-github
2019-06-18  3:20 ` voidlinux-github
2019-06-18  6:20 ` voidlinux-github
2019-06-18  6:20 ` voidlinux-github
2019-06-18 13:00 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-18 13:00 ` voidlinux-github
2019-06-18 13:12 ` voidlinux-github
2019-06-18 14:09 ` voidlinux-github [this message]
2019-06-18 14:09 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-18 14:27 ` voidlinux-github
2019-06-18 14:27 ` voidlinux-github
2019-06-18 15:44 ` voidlinux-github
2019-06-18 15:44 ` voidlinux-github
2019-06-24 16:00 ` voidlinux-github
2019-06-24 16:00 ` voidlinux-github
2019-06-24 16:08 ` New package: g810-led-0.3.5 voidlinux-github
2019-06-24 23:02 ` [PR PATCH] [Merged]: " voidlinux-github
2019-06-25  0:08 ` voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190618140929.VZwqZ83HbgPf1BRMXRd9YU5hXMrRoEW1lgekFKdYzFA@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).