office/adobe-reader: Add SRCARCH to avoid lint errors.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
D Woodfall 2023-05-16 23:55:24 +01:00 committed by Willy Sudiarto Raharjo
parent 6f5a2dde9c
commit 8c7279f897
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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