92640a145f
Closes: #6800 [via git-merge-pr]
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'pandoc'
|
|
pkgname=pandoc
|
|
# Keep in sync with http://www.stackage.org/lts
|
|
version=2.5
|
|
revision=1
|
|
_citeproc_version=0.15.0.1
|
|
create_wrksrc=yes
|
|
build_style=haskell-stack
|
|
make_build_args="
|
|
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files"
|
|
stackage="lts-13.2"
|
|
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="d57dc5db78a0a304de70436fe59a7599ab0c6d0fb2ab6704eeae498a4536222e
|
|
29db5f2aad3225859727271855461724574f3695ab3856ceac33b24a55ae92f8"
|
|
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
|
|
}
|