void-packages/srcpkgs/pandoc/template
Leah Neukirchen 5e88aa0574 pandoc: update to 2.9.1.1.
Mixing stackage LTS-15.3 with GHC 8.6 is suboptimal, but it works.
2020-03-08 17:48:21 +01:00

46 lines
1.9 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.9.1.1
revision=1
_citeproc_version=0.16.4.1
_sidenote_version=0.20.0
_monad_gen_version=0.3.0.1
create_wrksrc=yes
build_style=haskell-stack
make_build_args="
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files
--flag=hslua:system-lua --flag=hslua:pkg-config"
stackage="lts-15.3"
hostmakedepends="pkg-config unzip wget"
makedepends="zlib-devel lua-devel"
short_desc="Universal converter between markup formats (with citeproc support)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://johnmacfarlane.net/pandoc/"
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
http://hackage.haskell.org/package/${pkgname}-citeproc-${_citeproc_version}/${pkgname}-citeproc-${_citeproc_version}.tar.gz
https://github.com/jez/pandoc-sidenote/archive/${_sidenote_version}.tar.gz \
https://hackage.haskell.org/package/monad-gen-${_monad_gen_version}/monad-gen-${_monad_gen_version}.tar.gz"
checksum="9d21c5efe2074f9b3097a20e0798de9d8b89a86a1ce04a307f476c7b4aa3816d
bd726878595ca66376c9536addc81a19bbab8f3517d41aa72165582dd0336dc9
34ee7f46d6472c04884b1dcb030d701a32b885d9b0d4307d2c0da327a359cb7a
be8485023fce236b5b915f2f6074f7b0470a2040f84cdd137c5227f1b4c98465"
nocross=yes
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
/usr/bin/pandoc-sidenote
"
post_extract() {
sed -i 's/tasty .*,/tasty,/' pandoc-*/pandoc.cabal
sed -i 's/zip-archive .*,/zip-archive,/' pandoc-*/pandoc.cabal
}
post_install() {
vman pandoc-${version}/man/pandoc.1
vman pandoc-citeproc-${_citeproc_version}/man/man1/pandoc-citeproc.1
vlicense pandoc-${version}/COPYRIGHT LICENSE.pandoc
vlicense pandoc-citeproc-${_citeproc_version}/LICENSE LICENSE.pandoc-citeproc
vlicense pandoc-sidenote-${_sidenote_version}/LICENSE LICENSE.pandoc-sidenote
}