diff options
Diffstat (limited to 'network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild')
-rw-r--r-- | network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild b/network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild index 992cab7c6a..0b201f8167 100644 --- a/network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild +++ b/network/prosody-mod-vcard-muc/prosody-mod-vcard-muc.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for prosody-mod-vcard-muc -# Copyright 2019 Andrew Clemons, Wellington, New Zealand +# Copyright 2019-2022 Andrew Clemons, Wellington, New Zealand +# Copyright 2023 Andrew Clemons, Tokyo, Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,12 +23,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=prosody-mod-vcard-muc MDLNAM=$(echo $PRGNAM | sed 's/prosody-//' | tr '-' '_') -VERSION=${VERSION:-hg4043} -REVISION=${REVISION:-a533abe6ffd0} +VERSION=${VERSION:-hg5290} +REVISION=${REVISION:-dddac5a3f447} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,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} @@ -80,4 +91,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 |