diff options
Diffstat (limited to 'libraries/libgusb/libgusb.SlackBuild')
-rw-r--r-- | libraries/libgusb/libgusb.SlackBuild | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/libraries/libgusb/libgusb.SlackBuild b/libraries/libgusb/libgusb.SlackBuild index 83def17a29..09d86ef585 100644 --- a/libraries/libgusb/libgusb.SlackBuild +++ b/libraries/libgusb/libgusb.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libgusb -# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2016-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libgusb -VERSION=${VERSION:-0.2.11} +VERSION=${VERSION:-0.3.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,20 +69,23 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ +mkdir -p build +cd build + meson setup \ --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ + --buildtype=release \ + --libdir=lib${LIBDIRSUFFIX} \ + --libexecdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-static \ - --build=$ARCH-slackware-linux + -Ddocs=true \ + .. -make -make install DESTDIR=$PKG + ninja + DESTDIR=$PKG ninja install +cd .. + +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |