diff options
Diffstat (limited to 'audio/soxr/soxr.SlackBuild')
-rw-r--r-- | audio/soxr/soxr.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/audio/soxr/soxr.SlackBuild b/audio/soxr/soxr.SlackBuild index f04d9945c3..3928a4844a 100644 --- a/audio/soxr/soxr.SlackBuild +++ b/audio/soxr/soxr.SlackBuild @@ -1,8 +1,7 @@ -#!/bin/sh - +#!/bin/bash # Slackware build script for soxr -# Copyright 2016 klaatu +# Copyright 2019 | Klaatu, Lawrence NZ | klaatu@member.fsf.org # All rights reserved. # # GNU All-Permissive License @@ -11,10 +10,13 @@ # notice and this notice are preserved. This file is offered as-is, # without any warranty. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=soxr -VERSION=${VERSION:-0.1.2} +VERSION=${VERSION:-0.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,7 +26,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} @@ -85,4 +94,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 |