pandoc: update to 2.2.1.

This commit is contained in:
Leah Neukirchen 2018-07-12 19:01:11 +02:00 committed by Leah Neukirchen
parent e675d98d95
commit 3d8548c763

View file

@ -1,16 +1,16 @@
# Template file for 'pandoc'
pkgname=pandoc
# Keep in sync with http://www.stackage.org/lts
version=2.1.2
version=2.2.1
revision=1
_citeproc_version=0.14.1.5
_citeproc_version=0.14.3.1
build_style=haskell-stack
stackage="lts-11.0"
make_build_args="--flag pandoc:-old-locale
stackage="lts-12.0"
make_build_args="
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files"
nocross=yes
create_wrksrc=yes
hostmakedepends="hsb2hs unzip"
hostmakedepends="unzip"
makedepends="zlib-devel"
short_desc="Universal converter between markup formats (with citeproc support)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
@ -18,15 +18,15 @@ 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"
checksum="fe037f5fbb62fb27e7b1dbddfbd0aa45ea6e9fcdaff1f2203f7484c245b211b7
42c0b2c8365441bf884daa6202e6ed01b42181cf255406c88b3b31cd27cb467a"
nopie_files="
/usr/bin/pandoc
/usr/bin/pandoc-citeproc
"
post_extract() {
sed -i '/http-types/s/0.12/0.13/' ${pkgname}-${version}/${pkgname}.cabal
sed -i 's/tasty .*,/tasty,/' pandoc-*/pandoc.cabal
}
post_install() {
vman pandoc-${version}/man/pandoc.1