summaryrefslogtreecommitdiffstats
path: root/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild')
-rw-r--r--multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild b/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
index ca8351ecf8..451a879ceb 100644
--- a/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
+++ b/multimedia/mplayer-codecs64/mplayer-codecs64.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for mplayer-codecs64
-# Copyright 2006-2013 Robby Workman, Northport, Alabama, USA
+# Copyright 2006-2013 Robby Workman, Tuscaloosa, Alabama, USA
# 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=mplayer-codecs64
VERSION=${VERSION:-20061022}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -33,7 +36,14 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
-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}
@@ -76,4 +86,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
chown -R root:root .
find . -type f -exec chmod 644 {} \;
-/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