File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ aur_sources:
188188 email : 65486276+golangci-releaser@users.noreply.github.com
189189 build : |-
190190 local _commit _flags
191- _commit=$(bsdcat "${pkgname}- ${pkgver}.tar.gz" | git get-tar-commit-id)
191+ _commit=$(bsdcat "${pkgname}_ ${pkgver}.tar.gz" | git get-tar-commit-id)
192192 _flags=(
193193 -X=main.version="$pkgver"
194194 -X=main.commit="${_commit::7}"
@@ -201,15 +201,12 @@ aur_sources:
201201 export CGO_CXXFLAGS="$CXXFLAGS"
202202 export CGO_LDFLAGS="${LDFLAGS}"
203203 export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
204-
205- cd "$pkgname-$pkgver"
206-
204+
207205 go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
208206 ./"$pkgname" completion bash > completion.bash
209207 ./"$pkgname" completion zsh > completion.zsh
210208 ./"$pkgname" completion fish > completion.fish
211209 package : |-
212- cd "${pkgname}-${pkgver}"
213210 install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
214211 install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
215212 install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
You can’t perform that action at this time.
0 commit comments