void-packages/srcpkgs/pandoc/template
2018-03-13 14:50:21 +01:00

36 lines
1.3 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.1.2
revision=1
_citeproc_version=0.14.1.5
build_style=haskell-stack
stackage="lts-11.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 unzip"
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="dc0b26eff61c6eed2e00927fa2c6b966ca758dea1596f3049cc70ae8b650eb65
29e2afcdaaa23e5ac30e7f895bb45d36e0af79d4cfe769deb36c6f25fabfe2ca"
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
"
post_extract() {
sed -i '/http-types/s/0.12/0.13/' ${pkgname}-${version}/${pkgname}.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
}