vp-build/srcpkgs/pandoc/template

37 lines
1.3 KiB
Bash

# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.2.1
revision=1
_citeproc_version=0.14.3.1
build_style=haskell-stack
stackage="lts-12.0"
make_build_args="
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files"
nocross=yes
create_wrksrc=yes
hostmakedepends="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="fe037f5fbb62fb27e7b1dbddfbd0aa45ea6e9fcdaff1f2203f7484c245b211b7
42c0b2c8365441bf884daa6202e6ed01b42181cf255406c88b3b31cd27cb467a"
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
"
post_extract() {
sed -i 's/tasty .*,/tasty,/' 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
}