From 072475b03e2d9d658675fafcaaf51b3bee18de69 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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/rbw/template diff --git a/srcpkgs/rbw/template b/srcpkgs/rbw/template new file mode 100644 index 000000000000..cdf21a368234 --- /dev/null +++ b/srcpkgs/rbw/template @@ -0,0 +1,28 @@ +# 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" +changelog="https://git.tozt.net/rbw/plain/CHANGELOG.md" +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 +}