# Template file for 'golangci-lint' pkgname=golangci-lint version=2.1.6 revision=1 build_style=go build_helper=qemu go_import_path="github.com/golangci/golangci-lint/v2" 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 " 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=0ae50c50dbc7603ed27a6f559dca194cb8851f030410c5635270866e78cb3400 _completions="bash zsh fish" if [[ "$CROSS_BUILD" && "$XBPS_TARGET_MACHINE" == "aarch64-musl" ]]; then broken="broken qemu" fi # fix: collect2: fatal error: cannot find 'ld' export LDFLAGS="-fuse-ld=bfd" post_build() { local cli=$(find "$GOPATH/bin" -name $pkgname) for shell in $_completions; do vtargetrun "$cli" completion "$shell" >"completion.$shell" done } post_install() { for shell in $_completions; do vcompletion "completion.$shell" "$shell" done vdoc README.md }