# Template file for 'shfmt'
pkgname=shfmt
version=3.13.1
revision=1
build_style=go
go_import_path=mvdan.cc/sh/v3
go_package="${go_import_path}/cmd/shfmt"
go_ldflags="-X main.version=${version}"
make_check_args='-skip "^TestRunnerTerminal.*$"'
hostmakedepends="scdoc"
short_desc="Shell parser and formatter"
maintainer="Daniel Lewan <daniel@teddydd.me>"
license="BSD-3-Clause"
homepage="https://github.com/mvdan/sh"
changelog="https://raw.githubusercontent.com/mvdan/sh/master/CHANGELOG.md"
distfiles="https://github.com/mvdan/sh/archive/v${version}.tar.gz"
checksum=b31aad2d4c26b0c6e8ebe894d59022520bbebce33e082d7d29e4325eee35d308

post_install() {
	scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1
	vman shfmt.1
	vlicense LICENSE
}
