void-packages/srcpkgs/pandoc/template
2018-01-02 16:28:22 +01:00

34 lines
1.2 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.0.6
revision=1
_citeproc_version=0.12.2.2
build_style=haskell-stack
stackage="lts-10.2"
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="f2f236e91986b522510c7ea8212c1641da6006d0acec3e6b587a4e4faf3612ee
8209341dfc1496920e8b357c56bdef382ecf57fa3fcb9d2befa5ce3bef099f01"
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
"
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
}