aboutsummaryrefslogtreecommitdiff
path: root/office/adobe-reader
diff options
context:
space:
mode:
Diffstat (limited to 'office/adobe-reader')
-rw-r--r--office/adobe-reader/adobe-reader.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/office/adobe-reader/adobe-reader.SlackBuild b/office/adobe-reader/adobe-reader.SlackBuild
index 6ae4342146d0..e36b6315b5ed 100644
--- a/office/adobe-reader/adobe-reader.SlackBuild
+++ b/office/adobe-reader/adobe-reader.SlackBuild
@@ -34,13 +34,20 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=adobe-reader
VERSION=${VERSION:-9.5.5}
-ARCH=i486 # Leave this alone for acroread
+# SRCARCH/ARCH should stop lint scripts warnings - DW 2023-05-15 18:33:15 +0100
+SRCARCH=i486 # Leave this alone for acroread
+ARCH=i586
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+# Use ADOBE_LANG for installing a different language version of acroread
+# Moved here so that PRINT_PACKAGE_NAME outputs the correct name
+# DW 2023-05-15 18:32:26 +0100
+ADOBE_LANG=${ADOBE_LANG:-enu}
+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ echo "$PRGNAM-${VERSION}_$ADOBE_LANG-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -48,16 +55,13 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# Use ADOBE_LANG for installing a different language version of acroread
-ADOBE_LANG=${ADOBE_LANG:-enu}
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf AdobeReader
-tar xvf $CWD/AdbeRdr${VERSION}-1_${ARCH}linux_${ADOBE_LANG}.tar.bz2
+tar xvf $CWD/AdbeRdr${VERSION}-1_${SRCARCH}linux_${ADOBE_LANG}.tar.bz2
VERSION=${VERSION}_$ADOBE_LANG