40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'pandoc'
|
|
pkgname=pandoc
|
|
# Keep in sync with http://www.stackage.org/lts
|
|
version=2.14.0.3
|
|
revision=1
|
|
_sidenote_version=0.20.0
|
|
_monad_gen_version=0.3.0.1
|
|
create_wrksrc=yes
|
|
build_style=haskell-stack
|
|
stackage="lts-18.5"
|
|
make_build_args="
|
|
--flag pandoc: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"
|
|
maintainer="slotThe <soliditsallgood@mailbox.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
|
|
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="82e3f55bff3059bf30cf532e93d9876c9e3599aa4eafae9c907fe75a4430eddd
|
|
34ee7f46d6472c04884b1dcb030d701a32b885d9b0d4307d2c0da327a359cb7a
|
|
be8485023fce236b5b915f2f6074f7b0470a2040f84cdd137c5227f1b4c98465"
|
|
nocross=yes
|
|
nopie_files="
|
|
/usr/bin/pandoc
|
|
/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
|
|
vlicense pandoc-${version}/COPYRIGHT LICENSE.pandoc
|
|
vlicense pandoc-sidenote-${_sidenote_version}/LICENSE LICENSE.pandoc-sidenote
|
|
}
|