mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
6f5a2dde9c
commit
8c7279f897
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue