# Template file for 'rbw'
pkgname=rbw
version=1.11.1
revision=1
archs="x86_64* i686* aarch64* arm*" # ring
build_style="cargo"
build_helper="qemu"
depends="pinentry"
short_desc="Unofficial command-line client for Bitwarden"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://git.tozt.net/rbw"
changelog="https://git.tozt.net/rbw/plain/CHANGELOG.md"
distfiles="https://git.tozt.net/rbw/snapshot/rbw-${version}.tar.gz"
checksum=8fa68b1bda014fdcf087640aaae5db100e2f51f800d8fbac37236ef4e374ba74

post_install() {
	for shell in bash fish zsh; do
		vtargetrun target/${RUST_TARGET}/release/rbw gen-completions $shell > rbw.$shell
		vcompletion rbw.$shell $shell
	done

	vlicense LICENSE
}
