diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 23:55:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:59 +0700 |
commit | 8c7279f897d438f1c026e9e644a66b24eef05574 (patch) | |
tree | b4f902168d292b322e5289269e5203147e0409d6 /office/adobe-reader | |
parent | 6f5a2dde9c1e84786e6063605ca472e5cc6c5b51 (diff) |
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>
Diffstat (limited to 'office/adobe-reader')
-rw-r--r-- | office/adobe-reader/adobe-reader.SlackBuild | 16 |
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 |