diff options
Diffstat (limited to 'audio/snd/snd.SlackBuild')
-rw-r--r-- | audio/snd/snd.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/audio/snd/snd.SlackBuild b/audio/snd/snd.SlackBuild index ccc4f67f11..85e67b9e7b 100644 --- a/audio/snd/snd.SlackBuild +++ b/audio/snd/snd.SlackBuild @@ -1,7 +1,7 @@ -#!/bin/sh +#!/bin/bash -# SlackBuild for Snd, 3 December 2019 -# awg <awg@cock.li> +# SlackBuild for Snd, 5 June 2020 +# E. axillaris <elanus@i2pmail.org> # All rights reserved. # # Permission to use, copy, modify, or distribute this software for any @@ -16,14 +16,16 @@ # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. +# +# Please see the Snd license for more information. -## Snd itself remains a copyrighted work. Please see the file COPYING -## in the Snd source distribution. +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=snd -VERSION=${VERSION:-19.9} +VERSION=${VERSION:-20.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -33,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} @@ -120,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 |