From 0963d83adacca199c7525168b2859b3a15c3da33 Mon Sep 17 00:00:00 2001 From: Neel Chotai Date: Thu, 4 Jun 2020 17:59:15 +0100 Subject: [PATCH] New package: OpenRGB-0.3 --- srcpkgs/OpenRGB/INSTALL.msg | 6 ++ ...001-Fix-build-on-powerpc-and-related.patch | 56 +++++++++++++++++++ srcpkgs/OpenRGB/template | 20 +++++++ 3 files changed, 82 insertions(+) create mode 100644 srcpkgs/OpenRGB/INSTALL.msg create mode 100644 srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch create mode 100644 srcpkgs/OpenRGB/template diff --git a/srcpkgs/OpenRGB/INSTALL.msg b/srcpkgs/OpenRGB/INSTALL.msg new file mode 100644 index 00000000000..07892a7e9be --- /dev/null +++ b/srcpkgs/OpenRGB/INSTALL.msg @@ -0,0 +1,6 @@ +Further configuration is required to control RGB RAM and certain +motherboard LEDs. + +Refer to the README for more information. + +https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/README.md diff --git a/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch b/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch new file mode 100644 index 00000000000..7f2ed534849 --- /dev/null +++ b/srcpkgs/OpenRGB/patches/0001-Fix-build-on-powerpc-and-related.patch @@ -0,0 +1,56 @@ +From be395d1f0e88435b7a1ba38d0f959a8faf60de31 Mon Sep 17 00:00:00 2001 +From: q66 +Date: Fri, 24 Jul 2020 02:02:30 +0200 +Subject: [PATCH] Fix build on powerpc and related + +Use asm/ioctls.h instead of the asm-generic version as the ioctl +numbers may not always match between platforms, and some ioctls +may not even exist on some platforms + +Also, some more types need to be undefined for inclusion of the +asm/termios.h at least on powerpc and related, should not hurt +elsewhere either so leave it without a guard + +Finally, termios2 does not exist on ppc since the fields that are +used from termios2 here are included in actual struct termios +--- + serial_port/serial_port.h | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) + +diff --git serial_port/serial_port.h serial_port/serial_port.h +index 4986ea5..2e3cb9d 100644 +--- serial_port/serial_port.h ++++ serial_port/serial_port.h +@@ -23,17 +23,26 @@ + #include + #include + +-//winsize, termio, and termios structs are redefined in +-//asm/termios.h, to prevent compiler errors from multply ++//these types are redefined in asm/termios.h ++//to prevent compiler errors from multply + //defining them, use a #define to rename them - + //essentially to undef them before they are redefined + #define winsize undefine_winsize + #define termio undefine_termio + #define termios undefine_termios ++#define sgttyb undefine_sgttyb ++#define tchars undefine_tchars ++#define ltchars undefine_ltchars + + #include +-#include ++#include + ++//ppc has c_ispeed/c_ospeed in termios and termios2 doesn't exist ++#if defined(__powerpc__) ++#define termios2 termios ++#define TCGETS2 TCGETS ++#define TCSETS2 TCSETS ++#endif + + #endif + +-- +2.27.0 + diff --git a/srcpkgs/OpenRGB/template b/srcpkgs/OpenRGB/template new file mode 100644 index 00000000000..c2d79c74ae0 --- /dev/null +++ b/srcpkgs/OpenRGB/template @@ -0,0 +1,20 @@ +# Template file for 'OpenRGB' +pkgname=OpenRGB +version=0.3 +revision=1 +wrksrc=OpenRGB-release_${version} +build_style=qmake +hostmakedepends="qt5 qt5-qmake qt5-host-tools git pkg-config" +makedepends="qt5-devel libusb-devel hidapi-devel" +short_desc="Open source RGB lighting control" +maintainer="Neel Chotai " +license="GPL-2.0-only" +homepage="https://gitlab.com/CalcProgrammer1/OpenRGB" +distfiles="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${version}/OpenRGB-release_${version}.tar.gz" +checksum=905bb7b824344162207a831ecd6c89c8c6d46ea2747e20ce50c59d8a0aa74602 + +post_install() { + vbin OpenRGB + vdoc README.md + vinstall 60-openrgb.rules 644 usr/lib/udev/rules.d +}