office/pandoc-bin: Fix architecture name

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
afhpayne 2022-02-16 21:38:27 -05:00 committed by Willy Sudiarto Raharjo
parent 6d56ec61fe
commit 7e8f80cdc0
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -27,13 +27,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pandoc-bin
SRCNAM=pandoc
VERSION=${VERSION:-2.17.1.1}
ARCH=$(basename $CWD/pandoc*.deb .deb);ARCH=${ARCH:(-5)}
ARCNAM=$(basename $CWD/pandoc*.deb .deb);ARCNAM=${ARCNAM:(-5)}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ "$ARCH" = "amd64" ]; then
BIT="64bit"
if [ "$ARCNAM" = "amd64" ]; then
BIT="64bit"; ARCH="x86_64"
else
echo "$ARCH is not supported."
exit 1
@ -58,9 +58,9 @@ mkdir -p $TMP $PKG/usr $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
mkdir -p $SRCNAM-$VERSION
mv $CWD/$SRCNAM-$VERSION-$BUILD-$ARCH.deb $SRCNAM-$VERSION
mv $CWD/$SRCNAM-$VERSION-$BUILD-$ARCNAM.deb $SRCNAM-$VERSION
cd $SRCNAM-$VERSION
ar -x $SRCNAM-$VERSION-$BUILD-$ARCH.deb
ar -x $SRCNAM-$VERSION-$BUILD-$ARCNAM.deb
tar xvf data.tar.gz
chown -R root:root .
find -L . \