void-packages/srcpkgs/pandoc/template

38 lines
1.3 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.7.3
revision=1
_citeproc_version=0.16.2
create_wrksrc=yes
build_style=haskell-stack
make_build_args="
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files"
stackage="lts-14.0"
hostmakedepends="unzip wget"
makedepends="zlib-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"
checksum="a877203379ec5179716d6999f76352229d7f40f5bec70dbfa48c140848cef236
5b6725b003474f19fd7de65f3371a015a7b210b42543fe952f2bc4c7d509b596"
nocross=yes
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
"
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
}