void-packages/srcpkgs/revive/template

25 lines
647 B
Bash

# Template file for 'revive'
pkgname=revive
version=1.3.9
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="icp <pangolin@vivaldi.net>"
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=a9373b4a2cd480d5383831b6927bc701f9ca1d02c5dc3e7c3f34d4bb189167cb
do_check() {
go test -v ./...
}
post_install() {
vdoc RULES_DESCRIPTIONS.md
vdoc README.md
vlicense LICENSE
}