summaryrefslogtreecommitdiffstats
path: root/source/n/libmbim/libmbim.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/libmbim/libmbim.SlackBuild')
-rwxr-xr-xsource/n/libmbim/libmbim.SlackBuild48
1 files changed, 27 insertions, 21 deletions
diff --git a/source/n/libmbim/libmbim.SlackBuild b/source/n/libmbim/libmbim.SlackBuild
index 5901801db..ffab4e413 100755
--- a/source/n/libmbim/libmbim.SlackBuild
+++ b/source/n/libmbim/libmbim.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2013 Robby Workman, Northport, Alabama, USA
+# Copyright 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -81,29 +82,34 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
+# Configure, build, and install:
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+mkdir meson-build
+cd meson-build
+meson setup \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/libexec \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
- --disable-gtk-doc \
- --disable-gtk-doc-html \
- --disable-static \
- --build=$ARCH-slackware-linux || exit 1
-
-make $NUMJOBS || make || exit 1
-make install DESTDIR=$PKG || exit 1
-
-rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
-
-# Since this thing won't listen:
-rm -rf $PKG/usr/share/gtk-doc/html
-rmdir $PKG/usr/share/gtk-doc 2> /dev/null
-rmdir $PKG/usr/share 2> /dev/null
+ --buildtype=release \
+ -Dbash_completion=false \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
+
+# bash-completion is not available at build time, so install the file manually:
+mkdir -p $PKG/usr/share/bash-completion/completions
+cp -a src/mbimcli/mbimcli $PKG/usr/share/bash-completion/completions/mbimcli
+chown root:root $PKG/usr/share/bash-completion/completions/mbimcli
+chmod 644 $PKG/usr/share/bash-completion/completions/mbimcli
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
@@ -124,7 +130,7 @@ if [ -d $PKG/usr/man ]; then
fi
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
-cp -a AUTHORS COPYING* NEWS README* $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a AUTHORS* LICENSES/* COPYING* NEWS* README* $PKG/usr/doc/$PKGNAM-$VERSION
# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control: