games/roccat-tools: Fix build.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-03-06 23:08:51 +07:00
parent cffd9bf866
commit b689338a77
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
--- ./ryosmk/libroccatryosmk/ryos_device.h.orig 2020-06-30 16:41:33.348116743 +0200
+++ ./ryosmk/libroccatryosmk/ryos_device.h 2020-06-30 16:40:18.701450210 +0200
@@ -23,5 +23,5 @@
G_BEGIN_DECLS
-enum {
+typedef enum {
RYOS_WRITE_CHECK_WAIT_LIGHT_CONTROL = 10,
} RyosWriteCheckWait;

View File

@ -112,11 +112,14 @@ fi
LUAVERSION="$( lua -e 'print(_VERSION)' | cut -d' ' -f2 )"
LUA="-DWITH_LUA='$LUAVERSION'"
patch -p1 < $CWD/fix-multiple-definitions.patch
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -isystem /usr/include/harfbuzz" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS="$(pkg-config --cflags harfbuzz)" \
$HW \
$LUA \
-DCMAKE_BUILD_TYPE=Release ..