From 7e8f80cdc0984812f8e4a326727c909662c72229 Mon Sep 17 00:00:00 2001 From: afhpayne Date: Wed, 16 Feb 2022 21:38:27 -0500 Subject: [PATCH] office/pandoc-bin: Fix architecture name Signed-off-by: Willy Sudiarto Raharjo --- office/pandoc-bin/pandoc-bin.SlackBuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/office/pandoc-bin/pandoc-bin.SlackBuild b/office/pandoc-bin/pandoc-bin.SlackBuild index 0f21d82e0c..c37c12c53e 100644 --- a/office/pandoc-bin/pandoc-bin.SlackBuild +++ b/office/pandoc-bin/pandoc-bin.SlackBuild @@ -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 . \