summaryrefslogtreecommitdiffstats
path: root/multimedia/ucview
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ucview')
-rw-r--r--multimedia/ucview/README13
-rw-r--r--multimedia/ucview/ucview.SlackBuild16
2 files changed, 20 insertions, 9 deletions
diff --git a/multimedia/ucview/README b/multimedia/ucview/README
index 1f62d36ca6..f093128631 100644
--- a/multimedia/ucview/README
+++ b/multimedia/ucview/README
@@ -1,6 +1,7 @@
-UCView is a video capture and display program based on the Unicap video
-imaging library. It allows high performance live video display, by using
-XVideo hardware acceleration where possible. It supports a broad range of
-video capture devices via the unicap library. It allows audio and video
-recording and encoding, by using the free Ogg Vorbis and Theora high
-performance codecs. It can also be extended via plugins.
+UCView is a video capture and display program based on the Unicap
+video imaging library. It allows high performance live video display,
+by using XVideo hardware acceleration where possible. It supports
+a broad range of video capture devices via the unicap library. It
+allows audio and video recording and encoding, by using the free Ogg
+Vorbis and Theora high performance codecs. It can also be extended via
+plugins.
diff --git a/multimedia/ucview/ucview.SlackBuild b/multimedia/ucview/ucview.SlackBuild
index 7321cd23df..fcba72646c 100644
--- a/multimedia/ucview/ucview.SlackBuild
+++ b/multimedia/ucview/ucview.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ucview
@@ -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=ucview
VERSION=${VERSION:-20150221}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# Source ID (GitHub).
SRCVER=${SRCVER:-29bd93aeef0573c58c9aee665dc43fdfd1f77a1f}
@@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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}
@@ -108,4 +118,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
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