libraries/hidapi: Updated for version 0.14.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2023-07-31 08:41:48 +07:00
parent 9ff3ea27f0
commit c7fc4d35ee
2 changed files with 14 additions and 25 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for hidapi
# Copyright 2015-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2015-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=hidapi
SRCNAM=hidapi-hidapi
VERSION=${VERSION:-0.10.1}
VERSION=${VERSION:-0.14.0}
SRCVER=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -81,23 +78,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/configure.ac.patch
./bootstrap
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la

View file

@ -1,8 +1,8 @@
PRGNAM="hidapi"
VERSION="0.10.1"
VERSION="0.14.0"
HOMEPAGE="https://github.com/libusb/hidapi/"
DOWNLOAD="https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.10.1.tar.gz"
MD5SUM="12dd792b3dbdfd5c875c3d8b0527cb79"
DOWNLOAD="https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.14.0/hidapi-0.14.0.tar.gz"
MD5SUM="d65a951df6f566f90bbeb4414caf2c1e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""