void-packages/srcpkgs/shfmt/template
2020-12-04 14:30:39 -03:00

21 lines
588 B
Bash

# Template file for 'shfmt'
pkgname=shfmt
version=3.2.1
revision=1
wrksrc="sh-${version}"
build_style=go
go_import_path=mvdan.cc/sh
go_package="${go_import_path}/cmd/shfmt"
hostmakedepends="scdoc"
short_desc="Shell parser and formatter"
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/mvdan/sh"
distfiles="https://github.com/mvdan/sh/archive/v${version}.tar.gz"
checksum=a1470285e04b69ee7a2bb3948b64e1da9cabe59658997b50aac7c64465f330bd
post_install() {
scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1
vman shfmt.1
vlicense LICENSE
}