Github messages for voidlinux
 help / color / mirror / Atom feed
From: amak79 <amak79@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: gimx-8.0
Date: Sun, 08 Nov 2020 05:48:52 +0100	[thread overview]
Message-ID: <20201108044852.YNK_Jb3Ut3gNcZQ6T0bzA7HDutkBCEWEIrm9mlUT4h8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26190@inbox.vuxu.org>

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

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

https://github.com/amak79/void-packages gimx
https://github.com/void-linux/void-packages/pull/26190

New package: gimx-8.0


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gimx-26190.patch --]
[-- Type: text/x-diff, Size: 7491 bytes --]

From a34d47fbe54fd8b33bddccb25011b17761cad4f2 Mon Sep 17 00:00:00 2001
From: amak <amak.git@outlook.com>
Date: Wed, 28 Oct 2020 00:50:20 +1100
Subject: [PATCH] New package: gimx-8.0

---
 common/shlibs                   | 18 +++++++++
 srcpkgs/gimx-cli                |  1 +
 srcpkgs/gimx-firmware           |  1 +
 srcpkgs/gimx/patches/musl.patch | 70 +++++++++++++++++++++++++++++++++
 srcpkgs/gimx/template           | 65 ++++++++++++++++++++++++++++++
 5 files changed, 155 insertions(+)
 create mode 120000 srcpkgs/gimx-cli
 create mode 120000 srcpkgs/gimx-firmware
 create mode 100644 srcpkgs/gimx/patches/musl.patch
 create mode 100644 srcpkgs/gimx/template

diff --git a/common/shlibs b/common/shlibs
index cba355c3bfa..2439d4a17ab 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3993,3 +3993,21 @@ libSeExpr2Editor.so.3 seexpr-krita-3.4.4.0_1
 libSeExpr2.so.3 seexpr-krita-3.4.4.0_1
 liburing.so.1 liburing-0.7_1
 libbson-1.0.so.0 libbson-1.17.0_1
+libgimxconfigeditor.so gimx-cli-8.0_1
+libgimxconfigupdater.so gimx-cli-8.0_1
+libgimxcontroller.so gimx-cli-8.0_1
+libgimxdownloader.so gimx-cli-8.0_1
+libgimxfile.so gimx-cli-8.0_1
+libgimxgpp.so gimx-cli-8.0_1
+libgimxhid.so gimx-cli-8.0_1
+libgimxinput.so gimx-cli-8.0_1
+libgimxlog.so gimx-cli-8.0_1
+libgimxpoll.so gimx-cli-8.0_1
+libgimxprio.so gimx-cli-8.0_1
+libgimxserial.so gimx-cli-8.0_1
+libgimxtimer.so gimx-cli-8.0_1
+libgimxtime.so gimx-cli-8.0_1
+libgimxudp.so gimx-cli-8.0_1
+libgimxuhid.so gimx-cli-8.0_1
+libgimxupdater.so gimx-cli-8.0_1
+libgimxusb.so gimx-cli-8.0_1
diff --git a/srcpkgs/gimx-cli b/srcpkgs/gimx-cli
new file mode 120000
index 00000000000..31428075254
--- /dev/null
+++ b/srcpkgs/gimx-cli
@@ -0,0 +1 @@
+gimx
\ No newline at end of file
diff --git a/srcpkgs/gimx-firmware b/srcpkgs/gimx-firmware
new file mode 120000
index 00000000000..31428075254
--- /dev/null
+++ b/srcpkgs/gimx-firmware
@@ -0,0 +1 @@
+gimx
\ No newline at end of file
diff --git a/srcpkgs/gimx/patches/musl.patch b/srcpkgs/gimx/patches/musl.patch
new file mode 100644
index 00000000000..3f8ff7551c9
--- /dev/null
+++ b/srcpkgs/gimx/patches/musl.patch
@@ -0,0 +1,70 @@
+Upstream: Sent but no response received
+
+diff -urpN gimx-8.0-a/core/connectors/bluetooth/btstack/btstack_common.c gimx-8.0-b/core/connectors/bluetooth/btstack/btstack_common.c
+--- gimx-8.0-a/core/connectors/bluetooth/btstack/btstack_common.c	2020-05-05 22:00:15.000000000 +1000
++++ gimx-8.0-b/core/connectors/bluetooth/btstack/btstack_common.c	2020-10-30 17:11:20.954389849 +1100
+@@ -6,6 +6,7 @@
+ #include "btstack_common.h"
+ #include <connectors/tcp_con.h>
+ #include <stdio.h>
++#include <sys/time.h>
+ 
+ #define BTSTACK_TIMEOUT   1 // 1 second
+ 
+diff -urpN gimx-8.0-a/shared/gimxcommon/src/posix/async.c gimx-8.0-b/shared/gimxcommon/src/posix/async.c
+--- gimx-8.0-a/shared/gimxcommon/src/posix/async.c	2020-05-05 22:00:15.000000000 +1000
++++ gimx-8.0-b/shared/gimxcommon/src/posix/async.c	2020-10-30 16:45:49.074739922 +1100
+@@ -120,7 +120,7 @@ int async_read_timeout(struct async_devi
+   fd_set readfds;
+ 
+   time_t sec = timeout / 1000;
+-  __suseconds_t usec = (timeout - sec * 1000) * 1000;
++  suseconds_t usec = (timeout - sec * 1000) * 1000;
+   struct timeval tv = {.tv_sec = sec, .tv_usec = usec};
+ 
+   while(bread != count)
+@@ -164,7 +164,7 @@ int async_write_timeout(struct async_dev
+   fd_set writefds;
+ 
+   time_t sec = timeout / 1000;
+-  __suseconds_t usec = (timeout - sec * 1000) * 1000;
++  suseconds_t usec = (timeout - sec * 1000) * 1000;
+   struct timeval tv = {.tv_sec = sec, .tv_usec = usec};
+ 
+   while(bwritten != count)
+diff -urpN gimx-8.0-a/shared/gimxfile/src/gfile.cpp gimx-8.0-b/shared/gimxfile/src/gfile.cpp
+--- gimx-8.0-a/shared/gimxfile/src/gfile.cpp	2020-05-05 22:00:15.000000000 +1000
++++ gimx-8.0-b/shared/gimxfile/src/gfile.cpp	2020-10-30 16:34:01.398217034 +1100
+@@ -7,6 +7,7 @@
+ #include <gimxlog/include/glog.h>
+ #include <gimxcommon/include/gerror.h>
+ #include <string.h>
++#include <limits.h>
+ 
+ #ifndef WIN32
+ #include <pwd.h> //to get the homedir + uid and gid
+diff -urpN gimx-8.0-a/shared/gimxtimer/src/linux/gtimer.c gimx-8.0-b/shared/gimxtimer/src/linux/gtimer.c
+--- gimx-8.0-a/shared/gimxtimer/src/linux/gtimer.c	2020-05-05 22:00:15.000000000 +1000
++++ gimx-8.0-b/shared/gimxtimer/src/linux/gtimer.c	2020-10-30 16:51:05.894944798 +1100
+@@ -73,8 +73,8 @@ static int read_callback(void * user) {
+ 
+ struct gtimer * gtimer_start(void * user, unsigned int usec, const GTIMER_CALLBACKS * callbacks) {
+ 
+-  __time_t sec = usec / 1000000;
+-  __time_t nsec = (usec - sec * 1000000) * 1000;
++  time_t sec = usec / 1000000;
++  time_t nsec = (usec - sec * 1000000) * 1000;
+   struct timespec period = { .tv_sec = sec, .tv_nsec = nsec };
+   struct itimerspec new_value = { .it_interval = period, .it_value = period, };
+ 
+diff -urpN gimx-8.0-a/shared/gimxudp/src/posix/gudp.c gimx-8.0-b/shared/gimxudp/src/posix/gudp.c
+--- gimx-8.0-a/shared/gimxudp/src/posix/gudp.c	2020-05-05 22:00:15.000000000 +1000
++++ gimx-8.0-b/shared/gimxudp/src/posix/gudp.c	2020-10-30 16:57:00.111701709 +1100
+@@ -14,6 +14,7 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <string.h>
++#include <sys/time.h>
+ #include <gimxcommon/include/gerror.h>
+ #include <gimxlog/include/glog.h>
+ 
diff --git a/srcpkgs/gimx/template b/srcpkgs/gimx/template
new file mode 100644
index 00000000000..496522d4bfb
--- /dev/null
+++ b/srcpkgs/gimx/template
@@ -0,0 +1,65 @@
+# Template file for 'gimx'
+pkgname=gimx
+version=8.0
+revision=1
+build_style=gnu-makefile
+make_use_env=yes
+hostmakedepends="gettext pkg-config"
+makedepends="libbluetooth-devel libcurl-devel libusb-devel libX11-devel libXi-devel
+ libxml2-devel mhash-devel ncurses-devel wxWidgets-gtk3-devel"
+depends="gimx-cli-${version}_${revision} gimx-firmware-${version}_${revision}
+ avrdude xdg-utils xterm"
+short_desc="Use a computer as a hub for your gaming devices"
+maintainer="amak <amak.git@outlook.com>"
+license="GPL-3.0-only"
+homepage="https://blog.gimx.fr/"
+distfiles="https://github.com/matlo/GIMX/releases/download/v${version}/gimx_${version}-1.tar.gz"
+checksum=783673435bd424ba49e6ad5911559a517f746e50dad0f10689f0dc53336a8e1e
+patch_args="-Np1"
+
+# silence unused function errors in loader/gimx-loader.cpp
+# that are triggered by archs not defined in info.h
+CXXFLAGS=" -Wno-unused-function"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" ncurses-devel"
+fi
+
+post_extract() {
+	# fix build with ncurses 6
+	vsed -i -e "s:ncursesw5-config:ncursesw6-config:" core/Makefile
+
+	# fix ncursesw/ncurses.h include
+	vsed -i -e "s:<ncursesw/ncurses.h>:<curses.h>:" core/display.c
+
+	# fix build with wxWidgets-gtk3
+	find . -iname Makefile -exec sed -i -e "s:wx-config:&-gtk3:" "{}" \;
+}
+
+post_install() {
+	vdoc README.md
+}
+
+gimx-cli_package() {
+	short_desc+=" - cli tools"
+	shlib_provides="libgimxconfigeditor.so libgimxconfigupdater.so libgimxcontroller.so
+	 libgimxdownloader.so libgimxfile.so libgimxgpp.so libgimxhid.so libgimxinput.so
+	 libgimxlog.so libgimxpoll.so libgimxprio.so libgimxserial.so libgimxtimer.so
+	 libgimxtime.so libgimxudp.so libgimxuhid.so libgimxupdater.so libgimxusb.so"
+
+	pkg_install() {
+		for bin in bdaddr ds4tool gimx hcirevision sixaddr ; do
+			vmove "usr/bin/${bin}"
+		done
+		vmove "usr/lib/*.so"
+		vmove usr/share/locale
+	}
+}
+
+gimx-firmware_package() {
+	short_desc+=" - firmware files"
+
+	pkg_install() {
+		vmove usr/share/gimx/firmware
+	}
+}

  parent reply	other threads:[~2020-11-08  4:48 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-07  0:36 [PR PATCH] " amak79
2020-11-07  0:46 ` [PR REVIEW] " ericonr
2020-11-07  0:46 ` ericonr
2020-11-07  0:46 ` ericonr
2020-11-07  0:47 ` ericonr
2020-11-07  0:47 ` ericonr
2020-11-07  0:47 ` ericonr
2020-11-07  2:24 ` amak79
2020-11-07  2:24 ` amak79
2020-11-07  2:25 ` amak79
2020-11-07  2:25 ` amak79
2020-11-07  2:25 ` amak79
2020-11-07  2:26 ` amak79
2020-11-07  2:28 ` amak79
2020-11-07  3:09 ` amak79
2020-11-07  3:18 ` amak79
2020-11-07  4:06 ` amak79
2020-11-07  6:06 ` amak79
2020-11-07  7:56 ` [PR PATCH] [Updated] " amak79
2020-11-07  9:04 ` [PR REVIEW] " amak79
2020-11-08  0:23 ` [PR PATCH] [Updated] " amak79
2020-11-08  0:32 ` amak79
2020-11-08  3:01 ` [PR REVIEW] " amak79
2020-11-08  4:20 ` [PR PATCH] [Updated] " amak79
2020-11-08  4:48 ` amak79 [this message]
2020-11-11  4:50 ` [PR REVIEW] " amak79
2020-11-11  4:55 ` amak79
2021-01-19  1:49 ` [PR PATCH] [Updated] " amak79
2021-04-06  1:04 ` amak79
2021-04-06 11:49 ` [PR REVIEW] " ericonr
2021-04-06 11:49 ` ericonr
2021-04-06 11:49 ` ericonr
2021-04-06 12:33 ` [PR PATCH] [Updated] " amak79
2021-05-10  4:02 ` [PR REVIEW] " amak79
2021-05-10  4:20 ` amak79
2021-05-10  6:37 ` amak79
2021-05-10  7:20 ` amak79
2021-05-11  6:20 ` [PR PATCH] [Updated] " amak79
2021-05-11  6:33 ` amak79
2021-05-11  6:41 ` [PR REVIEW] " amak79
2021-05-14  0:23 ` amak79
2021-06-28  4:32 ` [PR PATCH] [Updated] " amak79
2022-02-15  9:30 ` amak79
2022-02-15  9:30 ` [PR PATCH] [Closed]: " amak79

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=20201108044852.YNK_Jb3Ut3gNcZQ6T0bzA7HDutkBCEWEIrm9mlUT4h8@z \
    --to=amak79@users.noreply.github.com \
    --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).