-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ aur_sources: | |
email: [email protected] | ||
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}" | ||
|
@@ -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" | ||
|