@@ -140,78 +140,6 @@ brews:
140140# source_repo: "https://push.chocolatey.org/"
141141# goamd64: v1
142142
143- aurs :
144- - description : Fast linters runner for Go.
145- skip_upload : false
146- homepage : https://golangci.com
147- provides :
148- - " golangci-lint-bin"
149- maintainers :
150- - " Fernandez Ludovic <lfernandez dot dev at gmail dot com>"
151- license : GPL-3.0
152- private_key : " {{ .Env.AUR_KEY }}"
153- git_url :
" ssh://[email protected] /golangci-lint-bin.git" 154- commit_author :
155- name : golangci-releaser
156- 157- package : |-
158- local x86_64=amd64 i686=386 aarch64=arm64 armv6h=armv6 armv7h=armv7
159- cd "golangci-lint-${pkgver}-linux-${!CARCH}"
160-
161- # bin
162- install -Dm755 "./golangci-lint" "${pkgdir}/usr/bin/golangci-lint"
163-
164- # license
165- install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/golangci-lint/LICENSE"
166-
167- # completions
168- mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
169- mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
170- mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
171- ./golangci-lint completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/golangci-lint"
172- ./golangci-lint completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_golangci-lint"
173- ./golangci-lint completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/golangci-lint.fish"
174-
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://[email protected] /golangci-lint.git" 186- commit_author :
187- name : golangci-releaser
188- 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- go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
206- ./"$pkgname" completion bash > completion.bash
207- ./"$pkgname" completion zsh > completion.zsh
208- ./"$pkgname" completion fish > completion.fish
209- package : |-
210- install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
211- install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
212- install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
213- install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/"$pkgname".fish
214-
215143snapcrafts :
216144 - summary : Fast linters runner for Go.
217145 description : |
0 commit comments