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.10.1
|
|
revision=3
|
|
_citeproc_version=0.17.0.1
|
|
_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"
|
|
hostmakedepends="pkg-config unzip wget"
|
|
makedepends="zlib-devel lua53-devel tar"
|
|
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/${pkgname}-sidenote/archive/${_sidenote_version}.tar.gz \
|
|
https://hackage.haskell.org/package/monad-gen-${_monad_gen_version}/monad-gen-${_monad_gen_version}.tar.gz"
|
|
checksum="938a4c9b0a7ed3de886c73af4052913b0ac9e4aa12b435bd2afd09670bd3229a
|
|
f3e5ce3d1d21c27178f2fc69580750e3ce97fc5f962f2d01f7b6aa2e090c2342
|
|
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
|
|
}
|