27 lines
783 B
Bash
27 lines
783 B
Bash
# Template file for 'shellcheck'
|
|
pkgname=shellcheck
|
|
version=0.7.2
|
|
revision=2
|
|
build_style=haskell-stack
|
|
stackage="lts-17.5"
|
|
hostmakedepends="pandoc"
|
|
short_desc="Static analysis tool for shell scripts"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.shellcheck.net/"
|
|
distfiles="https://github.com/koalaman/shellcheck/archive/v${version}.tar.gz"
|
|
checksum=5911f6133951d0ba6d643025bc50f2afb6c6f66d7225dc3d42e8845bfdf74c3c
|
|
nocross=yes
|
|
nopie_files="/usr/bin/shellcheck"
|
|
|
|
pre_configure() {
|
|
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 README.html
|
|
vman shellcheck.1
|
|
cp -r ${wrksrc}/doc ${PKGDESTDIR}/usr/share/doc/${pkgname}/doc
|
|
}
|