diff options
Diffstat (limited to 'multimedia/aces_container/aces_container.SlackBuild')
-rw-r--r-- | multimedia/aces_container/aces_container.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/multimedia/aces_container/aces_container.SlackBuild b/multimedia/aces_container/aces_container.SlackBuild index f338ff3ef5..3562bc9c95 100644 --- a/multimedia/aces_container/aces_container.SlackBuild +++ b/multimedia/aces_container/aces_container.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for aces_container -# Copyright 2016 Klaatu +# Copyright 2016-22 Klaatu # 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=aces_container -VERSION=${VERSION:-1.0.1} +VERSION=${VERSION:-1.0.2} 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} @@ -86,4 +96,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 |