void-packages/srcpkgs/pandoc/template
2017-02-13 22:48:31 +01:00

30 lines
1.2 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=1.19.2.1
revision=1
_citeproc_version=0.10.4
build_style=haskell-stack
stackage="lts-8.0"
make_build_args="--flag pandoc:-old-locale
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files"
nocross=yes
create_wrksrc=yes
hostmakedepends="hsb2hs"
makedepends="zlib-devel"
short_desc="Universal converter between markup formats (with citeproc support)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
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"
checksum="08692f3d77bf95bb9ba3407f7af26de7c23134e7efcdafad0bdaf9050e2c7801
1dcfffe0dc26d0a1b5ef5688a09c1bb81231702169196e6faed8ddef360d848f"
nopie=yes # network-2.6.2.1 build fails with a relocation
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
}