@@ -145,7 +145,7 @@ aurs:
145145 skip_upload : false
146146 homepage : https://golangci.com
147147 provides :
148- - " golangci-lint"
148+ - " golangci-lint-bin "
149149 maintainers :
150150 - " Fernandez Ludovic <lfernandez dot dev at gmail dot com>"
151151 license : GPL-3.0
@@ -172,6 +172,49 @@ aurs:
172172 ./golangci-lint completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_golangci-lint"
173173 ./golangci-lint completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/golangci-lint.fish"
174174
175+ aur_sources :
176+ - description : Fast linters runner for Go.
177+ skip_upload : false
178+ homepage : https://golangci.com
179+ provides :
180+ - " golangci-lint"
181+ maintainers :
182+ - " Fernandez Ludovic <lfernandez dot dev at gmail dot com>"
183+ license : GPL-3.0
184+ private_key : " {{ .Env.AUR_KEY }}"
185+ git_url : " ssh://aur@aur.archlinux.org/golangci-lint.git"
186+ commit_author :
187+ name : golangci-releaser
188+ email : 65486276+golangci-releaser@users.noreply.github.com
189+ build : |-
190+ local _commit _flags
191+ _commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
192+ _flags=(
193+ -X=main.version="$pkgver"
194+ -X=main.commit="${_commit::7}"
195+ -X=main.date="$(date -u -d "@${SOURCE_DATE_EPOCH}" +'%FT%TZ')"
196+ -linkmode=external
197+ )
198+ export CGO_ENABLED=1
199+ export CGO_CFLAGS="${CFLAGS}"
200+ export CGO_CPPFLAGS="$CPPFLAGS"
201+ export CGO_CXXFLAGS="$CXXFLAGS"
202+ export CGO_LDFLAGS="${LDFLAGS}"
203+ export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
204+
205+ cd "$pkgname-$pkgver"
206+
207+ go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
208+ ./"$pkgname" completion bash > completion.bash
209+ ./"$pkgname" completion zsh > completion.zsh
210+ ./"$pkgname" completion fish > completion.fish
211+ package : |-
212+ cd "${pkgname}-${pkgver}"
213+ install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
214+ install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
215+ install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
216+ install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/"$pkgname".fish
217+
175218snapcrafts :
176219 - summary : Fast linters runner for Go.
177220 description : |
0 commit comments