diff options
author | afhpayne <github@komputermatrix.com> | 2022-02-16 21:38:27 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-17 09:41:13 +0700 |
commit | 7e8f80cdc0984812f8e4a326727c909662c72229 (patch) | |
tree | a1e5ca9b5bd8a098035a654db2f96946e46668c4 /office/pandoc-bin | |
parent | 6d56ec61feb57c66b62adcdc666d36f88d37d7ad (diff) |
office/pandoc-bin: Fix architecture name
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/pandoc-bin')
-rw-r--r-- | office/pandoc-bin/pandoc-bin.SlackBuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/office/pandoc-bin/pandoc-bin.SlackBuild b/office/pandoc-bin/pandoc-bin.SlackBuild index 0f21d82e0c20..c37c12c53e02 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 . \ |