diff options
author | afhpayne <github@komputermatrix.com> | 2022-02-07 13:02:45 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-08 10:28:34 +0700 |
commit | b3f2ad0f0cabddaeea509c9b6cc5e3e315af1229 (patch) | |
tree | 333ce1a8971c7162df35baf30b81e461c12a1003 | |
parent | 72005ca8bf834116e07d0aca44161684df7dc69b (diff) | |
download | slackbuilds-b3f2ad0f0cabddaeea509c9b6cc5e3e315af1229.tar.gz |
office/pandoc-bin: Updated for version 2.17.1.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/pandoc-bin/pandoc-bin.SlackBuild | 32 | ||||
-rw-r--r-- | office/pandoc-bin/pandoc-bin.info | 6 |
2 files changed, 20 insertions, 18 deletions
diff --git a/office/pandoc-bin/pandoc-bin.SlackBuild b/office/pandoc-bin/pandoc-bin.SlackBuild index 9617dca9e2..0f21d82e0c 100644 --- a/office/pandoc-bin/pandoc-bin.SlackBuild +++ b/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 diff --git a/office/pandoc-bin/pandoc-bin.info b/office/pandoc-bin/pandoc-bin.info index 465f946965..68baa989dc 100644 --- a/office/pandoc-bin/pandoc-bin.info +++ b/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" |