summaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorAndrew Payne <phalange@komputermatrix.com>2019-03-26 09:11:02 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-26 09:11:02 +0700
commitb109c2ac5a585754b32b5bc091f93413919c8e99 (patch)
treec17a20fa11b91328ae1832c4c746ad1bf16fa2e7 /office
parentc8978920883ac4444be5cf776f1750c4f195776e (diff)
downloadslackbuilds-b109c2ac5a585754b32b5bc091f93413919c8e99.tar.gz
office/pandoc-bin: Added (a universal document converter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/pandoc-bin/README36
-rw-r--r--office/pandoc-bin/pandoc-bin.SlackBuild81
-rw-r--r--office/pandoc-bin/pandoc-bin.info10
-rw-r--r--office/pandoc-bin/slack-desc19
4 files changed, 146 insertions, 0 deletions
diff --git a/office/pandoc-bin/README b/office/pandoc-bin/README
new file mode 100644
index 0000000000..6a079f58ec
--- /dev/null
+++ b/office/pandoc-bin/README
@@ -0,0 +1,36 @@
+If you need to convert files from one markup format into another, pandoc is your swiss-army knife.
+
+Pandoc can convert documents in (several dialects of) Markdown, reStructuredText, textile, HTML,
+DocBook, LaTeX, MediaWiki markup, TWiki markup, TikiWiki markup, DokuWiki markup, Creole 1.0,
+Vimwiki markup, roff man, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, Microsoft Word docx,
+LibreOffice ODT, EPUB, Jupyter notebooks ipynb, or Haddock markup to
+HTML formats
+ XHTML, HTML5, and HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides
+Word processor formats
+ Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, Microsoft PowerPoint.
+Ebooks
+ EPUB version 2 or 3, FictionBook2
+Documentation formats
+ DocBook version 4 or 5, TEI Simple, GNU TexInfo, roff man, roff ms, Haddock markup
+Archival formats
+ JATS
+Page layout formats
+ InDesign ICML
+Outline formats
+ OPML
+TeX formats
+ LaTeX, ConTeXt, LaTeX Beamer slides
+PDF
+ via pdflatex, xelatex, lualatex, pdfroff, wkhtml2pdf, prince, or weasyprint.
+Lightweight markup formats
+ Markdown (including CommonMark and GitHub-flavored Markdown), reStructuredText, AsciiDoc,
+ Emacs Org-Mode, Emacs Muse, Textile, txt2tags, MediaWiki markup, DokuWiki markup,
+ TikiWiki markup, TWiki markup, Vimwiki markup, and ZimWiki markup.
+Interactive notebook formats
+ Jupyter notebook (ipynb)
+Custom formats
+ custom writers can be written in lua.
+
+NOTE:
+This slackbuild repackages the official binary from the Pandoc GitHub.
+There are no additional dependencies. \ No newline at end of file
diff --git a/office/pandoc-bin/pandoc-bin.SlackBuild b/office/pandoc-bin/pandoc-bin.SlackBuild
new file mode 100644
index 0000000000..4b53f789b8
--- /dev/null
+++ b/office/pandoc-bin/pandoc-bin.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# Slackware build script for pandoc-bin
+
+# Copyright 2019 Andrew Payne <phalange@komputermatrix.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=pandoc-bin
+SRCNAM=pandoc
+VERSION=${VERSION:-2.7.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+set -e
+
+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
+ BIT="64bit"
+else
+ echo "$ARCH is not supported."
+ exit 1
+fi
+
+TMP=${TMP:-/tmp/SBo}
+CWD=$(pwd)
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION-linux.tar.gz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+rm -rf $PKG
+mkdir -p $PKG/usr/
+cp -r bin $PKG/usr/
+cp -r share/man $PKG/usr/
+
+#find $PKG/usr/man -type f -exec gzip -9 {} \;
+#for i in $( find $PKG/usr/ -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/pandoc-bin/pandoc-bin.info b/office/pandoc-bin/pandoc-bin.info
new file mode 100644
index 0000000000..8de7424df4
--- /dev/null
+++ b/office/pandoc-bin/pandoc-bin.info
@@ -0,0 +1,10 @@
+PRGNAM="pandoc-bin"
+VERSION="2.7.1"
+HOMEPAGE="https://github.com/jgm/pandoc"
+DOWNLOAD="https://github.com/jgm/pandoc/releases/download/2.7.1/pandoc-2.7.1-linux.tar.gz"
+MD5SUM="6cf60734887a78f75a0e74f6be46bf18"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Andrew Payne"
+EMAIL="phalange@komputermatrix.com"
diff --git a/office/pandoc-bin/slack-desc b/office/pandoc-bin/slack-desc
new file mode 100644
index 0000000000..4ad318e47f
--- /dev/null
+++ b/office/pandoc-bin/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+pandoc-bin: pandoc-bin (a universal document converter)
+pandoc-bin:
+pandoc-bin: Pandoc is a Haskell library for converting from one markup format to
+pandoc-bin: another, and a command-line tool that uses this library.
+pandoc-bin:
+pandoc-bin: Pandoc can convert between numerous markup and word processing
+pandoc-bin: formats, including, but not limited to, various flavors of Markdown,
+pandoc-bin: HTML, LaTeX and Word docx.
+pandoc-bin:
+pandoc-bin:
+pandoc-bin: