mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
gopass: fix cross.
use hostmakedepends gopass to generate completions
This commit is contained in:
parent
002e7e74be
commit
9879958efc
1 changed files with 9 additions and 1 deletions
|
@ -13,12 +13,20 @@ homepage="https://www.justwatch.com/gopass/"
|
||||||
changelog="https://raw.githubusercontent.com/justwatchcom/gopass/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/justwatchcom/gopass/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/gopasspw/gopass/archive/v${version}.tar.gz"
|
distfiles="https://github.com/gopasspw/gopass/archive/v${version}.tar.gz"
|
||||||
checksum=6dc423448c0672fd5087ab75e4c3d8584fb75c93789c9fd68bf14576ab46d1ed
|
checksum=6dc423448c0672fd5087ab75e4c3d8584fb75c93789c9fd68bf14576ab46d1ed
|
||||||
nocross=yes
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
# Depend on system gopass to generate completions
|
||||||
|
hostmakedepends="gopass"
|
||||||
|
fi
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
local GOPASS=${GOPATH}/bin/gopass
|
local GOPASS=${GOPATH}/bin/gopass
|
||||||
local completions=(zsh bash fish)
|
local completions=(zsh bash fish)
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
GOPASS=/usr/bin/gopass
|
||||||
|
fi
|
||||||
|
|
||||||
for completion in "${completions[@]}"; do
|
for completion in "${completions[@]}"; do
|
||||||
$GOPASS completion $completion > ${completion}.completion;
|
$GOPASS completion $completion > ${completion}.completion;
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue