summaryrefslogtreecommitdiffstats
path: root/multimedia/guvcview/guvcview.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/guvcview/guvcview.SlackBuild')
-rw-r--r--multimedia/guvcview/guvcview.SlackBuild38
1 files changed, 19 insertions, 19 deletions
diff --git a/multimedia/guvcview/guvcview.SlackBuild b/multimedia/guvcview/guvcview.SlackBuild
index eb1ce668ce..bc5f30760e 100644
--- a/multimedia/guvcview/guvcview.SlackBuild
+++ b/multimedia/guvcview/guvcview.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
-# Slackware build script for GuvcView.
+# Slackware build script for guvcview
#
-# Copyright 2010-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2010-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=guvcview
-VERSION=${VERSION:-2.0.6}
+VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
DOCS="AUTHORS COPYING ChangeLog INSTALL README.md"
@@ -37,14 +40,15 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
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,20 +63,14 @@ 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
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-src-$VERSION
-tar xvf $CWD/$PRGNAM-src-$VERSION.tar.gz
+mkdir -p $PRGNAM-src-$VERSION
+tar xvf $CWD/$PRGNAM-src-$VERSION.tar.bz2
cd $PRGNAM-src-$VERSION
chown -R root:root .
find -L . \
@@ -91,12 +89,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
@@ -115,4 +115,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE