void-packages/srcpkgs/pandoc/template
2015-10-19 15:52:03 +02:00

28 lines
1.1 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=1.15.1
revision=1
_citeproc_version=0.7.4
build_style=haskell-stack
stackage="lts-3.10"
make_build_args="--flag pandoc:-old-locale --flag pandoc:embed_data_files"
nocross=yes
create_wrksrc=yes
hostmakedepends="ghc stack 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="77503f8981cfcbe7df841ed1c71de9164d0eaf17b8b9c51e6d966e4fd333b733
905112d8995fb6de5ee4c4bfd62cc89baa3bf1598f258aaba1704f85cf739fd2"
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
}