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 . \