Skip to content

Commit 2980928

Browse files
authored
dev: fix aur sources (#5275)
1 parent ffb15ca commit 2980928

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.goreleaser.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ aur_sources:
188188
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"

0 commit comments

Comments
 (0)