diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/hidapi/hidapi.SlackBuild | 33 | ||||
-rw-r--r-- | libraries/hidapi/hidapi.info | 6 |
2 files changed, 14 insertions, 25 deletions
diff --git a/libraries/hidapi/hidapi.SlackBuild b/libraries/hidapi/hidapi.SlackBuild index 7fc5f39e664c..9bf00bc05229 100644 --- a/libraries/hidapi/hidapi.SlackBuild +++ b/libraries/hidapi/hidapi.SlackBuild @@ -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 diff --git a/libraries/hidapi/hidapi.info b/libraries/hidapi/hidapi.info index 901732d350e9..e7dfab47dfdd 100644 --- a/libraries/hidapi/hidapi.info +++ b/libraries/hidapi/hidapi.info @@ -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="" |