summaryrefslogtreecommitdiffstats
path: root/development/composer/composer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/composer/composer.SlackBuild')
-rw-r--r--development/composer/composer.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/development/composer/composer.SlackBuild b/development/composer/composer.SlackBuild
index 4e9f6766ff..84013f58ce 100644
--- a/development/composer/composer.SlackBuild
+++ b/development/composer/composer.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for composer
-# Copyright 2015-2018 Eugene Wissner, Dachau, Germany
+# Copyright 2015-2024 Eugene Wissner, Mannheim, Germany
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -24,13 +24,23 @@
# (INCLUDING NEGLIGENCE OR 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=composer
-VERSION=${VERSION:-1.9.1}
+VERSION=${VERSION:-2.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-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}
@@ -50,4 +60,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