summaryrefslogtreecommitdiffstats
path: root/multimedia/serviio/serviio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/serviio/serviio.SlackBuild')
-rw-r--r--multimedia/serviio/serviio.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/multimedia/serviio/serviio.SlackBuild b/multimedia/serviio/serviio.SlackBuild
index 92589411ee..5d2cd8de12 100644
--- a/multimedia/serviio/serviio.SlackBuild
+++ b/multimedia/serviio/serviio.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# serviio.SlackBuild: build script for Serviio DNLA Server
@@ -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=serviio
VERSION=${VERSION:-1.7.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SERVIIOGID=${SERVIIOGID:-337}
SERVIIOUID=${SERVIIOUID:-337}
@@ -52,7 +55,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}
@@ -104,4 +114,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