Skip to content

Commit

Permalink
dev: fix aur sources (#5275)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Jan 1, 2025
1 parent ffb15ca commit 2980928
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ aur_sources:
email: 65486276+golangci-releaser@users.noreply.github.com
build: |-
local _commit _flags
_commit=$(bsdcat "${pkgname}-${pkgver}.tar.gz" | git get-tar-commit-id)
_commit=$(bsdcat "${pkgname}_${pkgver}.tar.gz" | git get-tar-commit-id)
_flags=(
-X=main.version="$pkgver"
-X=main.commit="${_commit::7}"
Expand All @@ -201,15 +201,12 @@ aur_sources:
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
cd "$pkgname-$pkgver"
go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
./"$pkgname" completion bash > completion.bash
./"$pkgname" completion zsh > completion.zsh
./"$pkgname" completion fish > completion.fish
package: |-
cd "${pkgname}-${pkgver}"
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
Expand Down

0 comments on commit 2980928

Please sign in to comment.