diff options
Diffstat (limited to 'audio/snd/snd.SlackBuild')
-rw-r--r-- | audio/snd/snd.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/audio/snd/snd.SlackBuild b/audio/snd/snd.SlackBuild index 924179f881..85e67b9e7b 100644 --- a/audio/snd/snd.SlackBuild +++ b/audio/snd/snd.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SlackBuild for Snd, 5 June 2020 # E. axillaris <elanus@i2pmail.org> @@ -19,10 +19,13 @@ # # Please see the Snd license for more information. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=snd VERSION=${VERSION:-20.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -32,7 +35,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} @@ -119,4 +129,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 |