aboutsummaryrefslogtreecommitdiff
path: root/office/moneydance/moneydance.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/moneydance/moneydance.SlackBuild')
-rw-r--r--office/moneydance/moneydance.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/office/moneydance/moneydance.SlackBuild b/office/moneydance/moneydance.SlackBuild
index 52976576b2fe..78e9a07a30e5 100644
--- a/office/moneydance/moneydance.SlackBuild
+++ b/office/moneydance/moneydance.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=moneydance
VERSION=${VERSION:-2021.1.3069}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -35,6 +36,14 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
+# 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}
@@ -85,4 +94,4 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE