void-packages/srcpkgs/golangci-lint/template

23 lines
802 B
Bash

# Template file for 'golangci-lint'
pkgname=golangci-lint
version=1.59.1
revision=1
build_style=go
go_import_path="github.com/golangci/golangci-lint"
go_package="./cmd/golangci-lint"
go_ldflags="-X main.version=${version} -X main.date=${SOURCE_DATE_EPOCH} -X main.commit=v${version}"
short_desc="Linters Runner for Go"
maintainer="Alexander Grafov <grafov@inet.name>"
license="GPL-3.0-only"
homepage="https://github.com/golangci/golangci-lint"
changelog="https://raw.githubusercontent.com/golangci/golangci-lint/master/CHANGELOG.md"
distfiles="https://github.com/golangci/golangci-lint/archive/v${version}.tar.gz"
checksum=a53ef63033da85f8d44ed21d9f5a310279e8da979bb3c5eb9c7ce63b25e99619
# fix: collect2: fatal error: cannot find 'ld'
export LDFLAGS="-fuse-ld=bfd"
post_install() {
vdoc README.md
}