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
commit64e92abca54c5b9fb6eb3b3c6b11822dccc50c67 (patch)
treee0befcd4096369b195c534bc22bc9f25ca5a52a9 /office
parentf1fa9e13052445bbd79162891b22c7b5b2307a4c (diff)
downloadslackbuilds-64e92abca54c5b9fb6eb3b3c6b11822dccc50c67.tar.gz
office/openoffice-langpack: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/openoffice-langpack/openoffice-langpack.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/office/openoffice-langpack/openoffice-langpack.SlackBuild b/office/openoffice-langpack/openoffice-langpack.SlackBuild
index 4742e78d9f..44a4fe464f 100644
--- a/office/openoffice-langpack/openoffice-langpack.SlackBuild
+++ b/office/openoffice-langpack/openoffice-langpack.SlackBuild
@@ -48,18 +48,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"
@@ -74,6 +62,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-${VERSION}_${PKG_LANG}-$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