diff options
Diffstat (limited to 'audio/libebur128/libebur128.SlackBuild')
-rw-r--r-- | audio/libebur128/libebur128.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/audio/libebur128/libebur128.SlackBuild b/audio/libebur128/libebur128.SlackBuild index 593a6b5d74..dd72599f6a 100644 --- a/audio/libebur128/libebur128.SlackBuild +++ b/audio/libebur128/libebur128.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libebur128 -# Copyright 2016 Klaatu, Wellington NZ +# Copyright 2019-22 | Klaatu, Lawrence NZ | klaatu@member.fsf.org # All rights reserved. # # GNU All-Permissive License @@ -11,10 +11,13 @@ # notice and this notice are preserved. This file is offered as-is, # without any warranty. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libebur128 -VERSION=${VERSION:-1.2.2} +VERSION=${VERSION:-1.2.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,7 +27,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} @@ -49,7 +59,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/"${PRGNAM}"-"${VERSION}".tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -80,4 +90,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 |