summaryrefslogtreecommitdiffstats
path: root/multimedia/dvd-slideshow/dvd-slideshow.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/dvd-slideshow/dvd-slideshow.SlackBuild')
-rw-r--r--multimedia/dvd-slideshow/dvd-slideshow.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/multimedia/dvd-slideshow/dvd-slideshow.SlackBuild b/multimedia/dvd-slideshow/dvd-slideshow.SlackBuild
index 2c079d5b75..41214889eb 100644
--- a/multimedia/dvd-slideshow/dvd-slideshow.SlackBuild
+++ b/multimedia/dvd-slideshow/dvd-slideshow.SlackBuild
@@ -1,18 +1,28 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for dvd-slideshow
# Maintained by Klaatu @member.fsf.org
# Written by Giovanne Castro <giovannefc@terra.com.br>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=dvd-slideshow
-VERSION=${VERSION:-0.8.4_2}
+VERSION=${VERSION:-0.8.6_1}
SRCVER=$(echo $VERSION | tr _ -)
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# 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
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -57,4 +67,4 @@ mkdir -p $PKG/install
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