summaryrefslogtreecommitdiff
path: root/skip/pandoc/pandoc.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:04:17 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:04:17 +0100
commit871b2b573f01c1b3176a0f65458b3d281b41c437 (patch)
tree1311c682a9307026b039de9ba0e93bd22e35e2f5 /skip/pandoc/pandoc.xibuild
parentdfcdf333c80ae1d7171f6fa145fd87fecb8c5b73 (diff)
added pandoc and qt5
Diffstat (limited to 'skip/pandoc/pandoc.xibuild')
-rw-r--r--skip/pandoc/pandoc.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/skip/pandoc/pandoc.xibuild b/skip/pandoc/pandoc.xibuild
new file mode 100644
index 0000000..fd6988c
--- /dev/null
+++ b/skip/pandoc/pandoc.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="pandoc"
+DESC="universal markup converter"
+
+MAKEDEPS="cabal"
+DEPS="gmp libffi musl zlib "
+
+PKG_VER=2.16.2
+SOURCE="https://hackage.haskell.org/package/pandoc-$PKG_VER/pandoc-$PKG_VER.tar.gz"
+ADDITIONAL="cabal.project.freeze "
+
+prepare () {
+ cp "$srcdir/cabal.project.freeze" .
+ cabal update
+ cabal configure \
+ --prefix='/usr' \
+ --enable-tests \
+ --enable-split-sections \
+ --ghc-option="-split-sections" \
+ --ghc-option="-j" \
+ --ghc-option="-O1" \
+ --flags="+embed_data_files -trypandoc +static"
+}
+
+build () {
+ cabal install --only-dependencies
+ cabal build --jobs=${JOBS:-1}
+}
+
+package () {
+ bindir="$PKG_DEST/usr/bin"
+ mkdir -p "$bindir"
+ cabal install \
+ --installdir="$bindir" \
+ --install-method=copy
+ install -Dm644 man/pandoc.1 "$PKG_DEST"/usr/share/man/man1/pandoc.1
+}