40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'gopass'
|
|
pkgname=gopass
|
|
version=1.8.4
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/gopasspw/gopass
|
|
makedepends="gnupg2"
|
|
depends="gnupg2 git"
|
|
short_desc="The slightly more awesome standard unix password manager for teams"
|
|
maintainer="Dominic Monroe <monroef4@googlemail.com>"
|
|
license="MIT"
|
|
homepage="https://www.justwatch.com/gopass/"
|
|
changelog="https://raw.githubusercontent.com/justwatchcom/gopass/master/CHANGELOG.md"
|
|
distfiles="https://github.com/gopasspw/gopass/archive/v${version}.tar.gz"
|
|
checksum=4d35dc565457d5dde05faa538be9e8c1e99527d48d7d759c1a7e4e5566f27171
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Depend on system gopass to generate completions
|
|
hostmakedepends="gopass"
|
|
fi
|
|
|
|
post_build() {
|
|
local GOPASS=${GOPATH}/bin/gopass
|
|
local completions=(zsh bash fish)
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
GOPASS=/usr/bin/gopass
|
|
fi
|
|
|
|
for completion in "${completions[@]}"; do
|
|
$GOPASS completion $completion > ${completion}.completion;
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
install -Dm0755 zsh.completion ${DESTDIR}/usr/share/zsh/site-functions/_gopass
|
|
install -Dm0755 bash.completion ${DESTDIR}/usr/share/bash-completion/completions/gopass
|
|
install -Dm0755 fish.completion ${DESTDIR}/usr/share/fish/vendor_completions.d/gopass.fish
|
|
vlicense LICENSE
|
|
}
|