void-packages/srcpkgs/revive/template

25 lines
650 B
Bash

# Template file for 'revive'
pkgname=revive
version=1.3.4
revision=1
build_style=go
go_ldflags="-X github.com/mgechev/revive/cli.version=$version"
go_import_path="github.com/mgechev/revive"
short_desc="Drop-in replacement for golint"
maintainer="Roberto Ricci <io@r-ricci.it>"
license="MIT"
homepage="https://revive.run/"
changelog="https://github.com/mgechev/revive/releases"
distfiles="https://github.com/mgechev/revive/archive/refs/tags/v${version}.tar.gz"
checksum=78a5a5a416d9d6fb2111e978da59b6347516453d60d84ba7914bb1f839b00fe2
do_check() {
go test -v ./...
}
post_install() {
vdoc RULES_DESCRIPTIONS.md
vdoc README.md
vlicense LICENSE
}