summaryrefslogtreecommitdiffstats
path: root/office/libreoffice-helppack/libreoffice-helppack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/libreoffice-helppack/libreoffice-helppack.SlackBuild')
-rw-r--r--office/libreoffice-helppack/libreoffice-helppack.SlackBuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/office/libreoffice-helppack/libreoffice-helppack.SlackBuild b/office/libreoffice-helppack/libreoffice-helppack.SlackBuild
index a63d864b86..63fb356a93 100644
--- a/office/libreoffice-helppack/libreoffice-helppack.SlackBuild
+++ b/office/libreoffice-helppack/libreoffice-helppack.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for LibreOffice Help Packs
# Copyright 2013-2014 Niels Horn, Rio de Janeiro, RJ, Brazil
-# Copyright 2014-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2014-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,13 @@
# 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=libreoffice-helppack
-VERSION=${VERSION:-"6.2.8"}
+VERSION=${VERSION:-"24.2.1"}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
LOLANG=${LOLANG:-en-US}
PKG_LANG=${LOLANG//-/_}
@@ -43,11 +46,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
# Change source package name
if [ "$ARCH" = "x86_64" ]; then
SRCARCH="x86-64"
@@ -62,6 +60,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
@@ -101,4 +111,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 -l y -c n $OUTPUT/${PRGNAM}_${PKG_LANG}-${VERSION}-$PKGARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}_${PKG_LANG}-${VERSION}-$PKGARCH-$BUILD$TAG.$PKGTYPE