aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-22 23:41:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-23 10:47:08 +0700
commit3f1fcd3703510a4e0417b01cda51d9d2faff4c18 (patch)
treef8587203f296548907c72660cc8ed551d56cf132 /libraries
parentf22c8b53cf42e4d2d716a983c91397a821ee0677 (diff)
libraries/libgusb: Updated for version 0.3.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libgusb/libgusb.SlackBuild29
-rw-r--r--libraries/libgusb/libgusb.info6
2 files changed, 19 insertions, 16 deletions
diff --git a/libraries/libgusb/libgusb.SlackBuild b/libraries/libgusb/libgusb.SlackBuild
index 83def17a29a7..09d86ef58596 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
diff --git a/libraries/libgusb/libgusb.info b/libraries/libgusb/libgusb.info
index c71ec3815e42..822ecfd87226 100644
--- a/libraries/libgusb/libgusb.info
+++ b/libraries/libgusb/libgusb.info
@@ -1,8 +1,8 @@
PRGNAM="libgusb"
-VERSION="0.2.11"
+VERSION="0.3.6"
HOMEPAGE="https://github.com/hughsie/libgusb"
-DOWNLOAD="https://people.freedesktop.org/~hughsient/releases/libgusb-0.2.11.tar.xz"
-MD5SUM="fa2b41b828c749f9190edf888948a77b"
+DOWNLOAD="https://people.freedesktop.org/~hughsient/releases/libgusb-0.3.6.tar.xz"
+MD5SUM="252e119104e05705a97cafd3092cffdd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""