shellcheck: fix man/doc installation

This commit is contained in:
mobinmob 2019-12-09 15:57:48 +02:00 committed by Helmut Pozimski
parent 18e3cb3bb9
commit 274a927232

View file

@ -1,7 +1,7 @@
# Template file for 'shellcheck'
pkgname=shellcheck
version=0.7.0
revision=1
revision=2
build_style=haskell-stack
stackage="lts-13.26"
hostmakedepends="pandoc"
@ -15,9 +15,12 @@ nocross=yes
nopie_files="/usr/bin/shellcheck"
pre_configure() {
pandoc -s -t man shellcheck.1.md -o shellcheck.1
pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1
pandoc -s -f markdown-smart -t html5 -o README.html README.md
}
post_install() {
vdoc shellcheck.1
vdoc README.html
vman shellcheck.1
cp -r ${wrksrc}/doc ${PKGDESTDIR}/usr/share/doc/${pkgname}/doc
}