Browse Source

office/pandoc-bin: Updated for version 2.17.1.1

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/168/head
afhpayne 4 years ago
committed by Willy Sudiarto Raharjo
parent
commit
b3f2ad0f0c
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 32
      office/pandoc-bin/pandoc-bin.SlackBuild
  2. 6
      office/pandoc-bin/pandoc-bin.info

32
office/pandoc-bin/pandoc-bin.SlackBuild

@ -2,7 +2,7 @@
# Slackware build script for pandoc-bin
# Copyright 2019-2021 Andrew Payne <phalange@komputermatrix.com>
# Copyright 2019-2022 Andrew Payne <phalange@komputermatrix.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,20 +26,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pandoc-bin
SRCNAM=pandoc
VERSION=${VERSION:-2.13}
VERSION=${VERSION:-2.17.1.1}
ARCH=$(basename $CWD/pandoc*.deb .deb);ARCH=${ARCH:(-5)}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "x86_64" ]; then
if [ "$ARCH" = "amd64" ]; then
BIT="64bit"
else
echo "$ARCH is not supported."
@ -64,8 +57,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION-linux-amd64.tar.gz
mkdir -p $SRCNAM-$VERSION
mv $CWD/$SRCNAM-$VERSION-$BUILD-$ARCH.deb $SRCNAM-$VERSION
cd $SRCNAM-$VERSION
ar -x $SRCNAM-$VERSION-$BUILD-$ARCH.deb
tar xvf data.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -73,11 +69,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cp -r bin $PKG/usr/
cp -r share/man $PKG/usr/
mkdir -p $PKG/usr/bin
mkdir -p $PKG/opt/$PRGNAM
cp -a $TMP/$SRCNAM-$VERSION/usr/bin/pandoc $PKG/opt/$PRGNAM
ln -s /opt/$PRGNAM/pandoc $PKG/usr/bin/pandoc
cp -a $TMP/$SRCNAM-$VERSION/usr/share/man $PKG/usr/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-bin.SlackBuild
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cp -a $TMP/$SRCNAM-$VERSION/usr/share/doc/pandoc/copyright \
$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

6
office/pandoc-bin/pandoc-bin.info

@ -1,10 +1,10 @@
PRGNAM="pandoc-bin"
VERSION="2.13"
VERSION="2.17.1.1"
HOMEPAGE="https://github.com/jgm/pandoc"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-amd64.tar.gz"
MD5SUM_x86_64="4453baf7a3880c9f08c623d017761346"
DOWNLOAD_x86_64="https://github.com/jgm/pandoc/releases/download/2.17.1.1/pandoc-2.17.1.1-1-amd64.deb"
MD5SUM_x86_64="aad10bc92a11a0896cb8c093e4f0d530"
REQUIRES=""
MAINTAINER="Andrew Payne"
EMAIL="phalange@komputermatrix.com"
Loading…
Cancel
Save