From 871b2b573f01c1b3176a0f65458b3d281b41c437 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:04:17 +0100 Subject: added pandoc and qt5 --- skip/pandoc/pandoc.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 skip/pandoc/pandoc.xibuild (limited to 'skip/pandoc/pandoc.xibuild') 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 +} -- cgit v1.2.1