mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
office/pandoc-bin: Fix architecture name
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6d56ec61fe
commit
7e8f80cdc0
1 changed files with 5 additions and 5 deletions
|
@ -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 . \
|
||||
|
|
Loading…
Reference in a new issue