summaryrefslogtreecommitdiffstats
path: root/office
diff options
context:
space:
mode:
author Heinz Wiesinger2021-07-04 15:59:57 +0200
committer Heinz Wiesinger2021-07-17 21:55:18 +0200
commite314b1e9586c7e03795fb3702b4c38f8ae2e3709 (patch)
tree6b3f609ad09558991f4c63ea13a51d40e84a61ed /office
parent8990ea8f93300212fbb23e158128e893a45f2f1a (diff)
downloadslackbuilds-e314b1e9586c7e03795fb3702b4c38f8ae2e3709.tar.gz
office/libreoffice-langpack: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/libreoffice-langpack/libreoffice-langpack.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/office/libreoffice-langpack/libreoffice-langpack.SlackBuild b/office/libreoffice-langpack/libreoffice-langpack.SlackBuild
index a1dfc401fa..1449955417 100644
--- a/office/libreoffice-langpack/libreoffice-langpack.SlackBuild
+++ b/office/libreoffice-langpack/libreoffice-langpack.SlackBuild
@@ -47,18 +47,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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}
-
# Change source package name
if [ "$ARCH" = "x86_64" ]; then
SRCARCH="x86-64"
@@ -73,6 +61,18 @@ else
LIBDIRSUFFIX=""
fi
+# 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}_${PKG_LANG}-$VERSION-$PKGARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
set -e
# Concatenate all parts to get the full name of the tarball