File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ aur_sources:
188
188
189
189
build : |-
190
190
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)
192
192
_flags=(
193
193
-X=main.version="$pkgver"
194
194
-X=main.commit="${_commit::7}"
@@ -201,15 +201,12 @@ aur_sources:
201
201
export CGO_CXXFLAGS="$CXXFLAGS"
202
202
export CGO_LDFLAGS="${LDFLAGS}"
203
203
export GOFLAGS='-buildmode=pie -trimpath -modcacherw'
204
-
205
- cd "$pkgname-$pkgver"
206
-
204
+
207
205
go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
208
206
./"$pkgname" completion bash > completion.bash
209
207
./"$pkgname" completion zsh > completion.zsh
210
208
./"$pkgname" completion fish > completion.fish
211
209
package : |-
212
- cd "${pkgname}-${pkgver}"
213
210
install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
214
211
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
215
212
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
You can’t perform that action at this time.
0 commit comments