diff options
Diffstat (limited to 'audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild')
-rw-r--r-- | audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild b/audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild index 23e2296b01..db9631f7fe 100644 --- a/audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild +++ b/audio/qmmp-plugin-pack-qt5/qmmp-plugin-pack-qt5.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for qmmp-plugin-pack-qt5. # -# Copyright 2018-2019 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2024 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +23,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -SRCNAM=qmmp-plugin-pack -PRGNAM=$SRCNAM-qt5 -VERSION=${VERSION:-1.3.0} +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=qmmp-plugin-pack-qt5 +VERSION=${VERSION:-1.6.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=qmmp-plugin-pack if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +41,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} @@ -90,4 +102,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 |