diff options
Diffstat (limited to 'libraries/hidapi/hidapi.SlackBuild')
-rw-r--r-- | libraries/hidapi/hidapi.SlackBuild | 33 |
1 files changed, 11 insertions, 22 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 |