22 lines
789 B
Bash
22 lines
789 B
Bash
# Template file for 'golangci-lint'
|
|
pkgname=golangci-lint
|
|
version=1.51.2
|
|
revision=2
|
|
build_style=go
|
|
go_import_path=github.com/golangci/golangci-lint/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="Renato Aguiar <renato@renatoaguiar.net>"
|
|
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=7e5bc05ad3739cec5a8b4e947a02d540c657a06039175c8822e1000f6bf606bd
|
|
|
|
# fix: collect2: fatal error: cannot find 'ld'
|
|
export LDFLAGS="-fuse-ld=bfd"
|
|
|
|
post_install() {
|
|
vdoc README.md
|
|
}
|