misc/g810-led: Updated for version 0.4.3.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Patrick Volkerding 2023-09-23 09:35:04 +09:00 committed by Willy Sudiarto Raharjo
parent 3e4c08fdfa
commit 69f814e3c2
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 17 additions and 8 deletions

View file

@ -23,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=g810-led
VERSION=${VERSION:-0.4.2}
VERSION=${VERSION:-0.4.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -57,16 +57,12 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
@ -91,6 +87,9 @@ find -L . \
# - don't install the udev rules
patch -p1 < $CWD/g810-led.makefile.patch
# Add a missing include file to fix compiling with gcc13+:
patch -p1 < $CWD/g810-led.gcc13.patch
# Fix libdir:
sed -i "s|libdir?=\$(PREFIX)/lib|libdir?=\$(PREFIX)/lib${LIBDIRSUFFIX}|g" makefile

View file

@ -0,0 +1,10 @@
--- ./src/helpers/help.h.orig 2022-11-30 12:52:57.000000000 -0600
+++ ./src/helpers/help.h 2023-09-22 14:07:07.559767953 -0500
@@ -17,6 +17,7 @@
#ifndef HELP_HELPER
#define HELP_HELPER
+#include <cstdint>
#include <iostream>
namespace help {

View file

@ -1,8 +1,8 @@
PRGNAM="g810-led"
VERSION="0.4.2"
VERSION="0.4.3"
HOMEPAGE="https://github.com/MatMoul/g810-led/"
DOWNLOAD="https://github.com/MatMoul/g810-led/archive/v0.4.2/g810-led-0.4.2.tar.gz"
MD5SUM="6f4180a75469cd763b65fec7f1325c5f"
DOWNLOAD="https://github.com/MatMoul/g810-led/archive/v0.4.3/g810-led-0.4.3.tar.gz"
MD5SUM="f216cbca8a478041b145d80640021569"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""