summaryrefslogtreecommitdiffstats
path: root/graphics/yed/yed.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/yed/yed.SlackBuild')
-rw-r--r--graphics/yed/yed.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/graphics/yed/yed.SlackBuild b/graphics/yed/yed.SlackBuild
index d6332575dc..0871a78fca 100644
--- a/graphics/yed/yed.SlackBuild
+++ b/graphics/yed/yed.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for yEd
# Copyright 2012-2015 Fridrich von Stauffenberg <cancellor2@gmail.com>
-# Copyright 2021 Michel Begue <mab974@gmail.com>
+# Copyright 2021 Michel Begue <mab974@misouk.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +23,26 @@
# 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=yed
-VERSION=${VERSION:-3.20.1}
+VERSION=${VERSION:-3.23.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ORIG_PRGNAM=yEd
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}
@@ -71,4 +81,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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