From 21c4654dec7a791ac71ec7b8cefb6dd8b7f7a894 Mon Sep 17 00:00:00 2001 From: Omar Zeghouani Date: Thu, 5 Aug 2021 23:54:23 +0100 Subject: [PATCH] New package: rbw-1.3.0 --- srcpkgs/rbw/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/rbw/template diff --git a/srcpkgs/rbw/template b/srcpkgs/rbw/template new file mode 100644 index 000000000000..ad2d7533cd6e --- /dev/null +++ b/srcpkgs/rbw/template @@ -0,0 +1,27 @@ +# Template file for 'rbw' +pkgname=rbw +version=1.3.0 +revision=1 +build_style="cargo" +build_helper="qemu" +depends="pinentry" +short_desc="Unofficial command line client for Bitwarden" +maintainer="Omar Zeghouani " +license="MIT" +homepage="https://git.tozt.net/rbw" +distfiles="https://git.tozt.net/rbw/snapshot/rbw-${version}.tar.gz" +checksum=7255e322b8c6bd6ee9da00f4c54211e94a132abec15b9f51b8351af31a4744ac + +post_build() { + for shell in bash fish zsh; do + vtargetrun target/${RUST_TARGET}/release/rbw gen-completions $shell > rbw.$shell + done +} + +post_install() { + vcompletion rbw.bash bash + vcompletion rbw.fish fish + vcompletion rbw.zsh zsh + + vlicense LICENSE +}