aboutsummaryrefslogtreecommitdiff
path: root/multimedia/guvcview/guvcview.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-19 21:20:40 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-19 21:20:40 +0700
commitace7d22418e956d835b5ad6add20db587f2428db (patch)
tree677041ed5daa1c254f3e74bb781a6bb1b29e996d /multimedia/guvcview/guvcview.SlackBuild
parentb4a6bfacbfa2df1310ec846b5c75757e2c4a73de (diff)
multimedia/guvcview: Enable Qt5 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/guvcview/guvcview.SlackBuild')
-rw-r--r--multimedia/guvcview/guvcview.SlackBuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/multimedia/guvcview/guvcview.SlackBuild b/multimedia/guvcview/guvcview.SlackBuild
index eb1ce668ce298..bd5f89a1ef014 100644
--- a/multimedia/guvcview/guvcview.SlackBuild
+++ b/multimedia/guvcview/guvcview.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for GuvcView.
+# Slackware build script for guvcview
#
-# Copyright 2010-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2010-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=guvcview
VERSION=${VERSION:-2.0.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
DOCS="AUTHORS COPYING ChangeLog INSTALL README.md"
@@ -42,9 +42,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# By default, we will use PulseAudio
-PULSE=${PULSE:-"yes"}
-
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -59,13 +56,6 @@ else
LIBDIRSUFFIX=""
fi
-# Give users an option to disable PulseAudio
-if [ "$PULSE" = "NO" ]; then
- PULSEAUDIO="--disable-pulse"
-else
- PULSEAUDIO=""
-fi
-
set -e
rm -rf $PKG
@@ -91,12 +81,14 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--disable-debian-menu \
--enable-static=no \
- --build=$ARCH-slackware-linux \
- $PULSEAUDIO
+ --enable-qt5 \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+rm -rf $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