void-packages/srcpkgs/pandoc/template
2016-11-08 12:08:14 +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.17.2
revision=1
_citeproc_version=0.10.1
build_style=haskell-stack
stackage="lts-7.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="Christian Neukirchen <chneukirchen@gmail.com>"
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="81727d054dfb26de816ea59ed541ebaf60d66d440012c12ec02f9c2b02fee8ec
ebc3eb3ff95e97ebd46c0918a65db2da021de2a70d02dc85ca5b344ea5c21205"
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
}