void-packages/srcpkgs/shfmt/template

23 lines
683 B
Bash

# Template file for 'shfmt'
pkgname=shfmt
version=3.9.0
revision=2
build_style=go
go_import_path=mvdan.cc/sh/v3
go_package="${go_import_path}/cmd/shfmt"
go_ldflags="-X main.version=${version}"
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"
changelog="https://raw.githubusercontent.com/mvdan/sh/master/CHANGELOG.md"
distfiles="https://github.com/mvdan/sh/archive/v${version}.tar.gz"
checksum=d8bd0b83cd41bb65420395d6efb7d2c4bfcd535fbf3d702325d150e5ee2d1809
post_install() {
scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1
vman shfmt.1
vlicense LICENSE
}