46 lines
1.9 KiB
Bash
46 lines
1.9 KiB
Bash
# Template file for 'pandoc'
|
|
pkgname=pandoc
|
|
# Keep in sync with http://www.stackage.org/lts
|
|
version=2.9.2.1
|
|
revision=1
|
|
_citeproc_version=0.17
|
|
_sidenote_version=0.20.0
|
|
_monad_gen_version=0.3.0.1
|
|
create_wrksrc=yes
|
|
build_style=haskell-stack
|
|
make_build_args="
|
|
--flag pandoc:embed_data_files --flag pandoc-citeproc:embed_data_files
|
|
--flag=hslua:system-lua --flag=hslua:pkg-config"
|
|
stackage="lts-16.0"
|
|
hostmakedepends="pkg-config unzip wget"
|
|
makedepends="zlib-devel lua53-devel"
|
|
short_desc="Universal converter between markup formats (with citeproc support)"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later, BSD-3-Clause, MIT"
|
|
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
|
|
https://github.com/jez/pandoc-sidenote/archive/${_sidenote_version}.tar.gz \
|
|
https://hackage.haskell.org/package/monad-gen-${_monad_gen_version}/monad-gen-${_monad_gen_version}.tar.gz"
|
|
checksum="c26d35372cf8b7d53062c9c495c0bca2ee370891c2349d3798a44f9ca33bdf57
|
|
47a9e7aac348d55eb935bee5ced30529974f4a680d67c38ea68be1d83edaf5b1
|
|
34ee7f46d6472c04884b1dcb030d701a32b885d9b0d4307d2c0da327a359cb7a
|
|
be8485023fce236b5b915f2f6074f7b0470a2040f84cdd137c5227f1b4c98465"
|
|
nocross=yes
|
|
nopie_files="
|
|
/usr/bin/pandoc
|
|
/usr/bin/pandoc-citeproc
|
|
/usr/bin/pandoc-sidenote
|
|
"
|
|
|
|
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
|
|
vlicense pandoc-sidenote-${_sidenote_version}/LICENSE LICENSE.pandoc-sidenote
|
|
}
|