diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = rbw pkgdesc = unofficial bitwarden cli pkgver = 1.2.0 - pkgrel = 1 + pkgrel = 2 url = https://git.tozt.net/rbw arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Jesse Luehrs <archlinux@tozt.net> pkgname=rbw pkgver=1.2.0 -pkgrel=1 +pkgrel=2 makedepends=('rust' 'cargo') depends=('pinentry' 'openssl') conflicts=('rbw-git' 'rbw-bin') @@ -16,6 +16,9 @@ license=('MIT') build() { cd "${srcdir}/${pkgname}-${pkgver}" cargo build --release --locked + cargo run --release --locked --bin rbw -- gen-completions bash >bash-completions + cargo run --release --locked --bin rbw -- gen-completions zsh >zsh-completions + cargo run --release --locked --bin rbw -- gen-completions fish >fish-completions } check() { @@ -28,4 +31,7 @@ package() { install -Dm 755 target/release/rbw -t "${pkgdir}/usr/bin" install -Dm 755 target/release/rbw-agent -t "${pkgdir}/usr/bin" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 bash-completions "${pkgdir}/usr/share/bash-completion/completions/rbw" + install -Dm 644 zsh-completions "${pkgdir}/usr/share/zsh/site-functions/_rbw" + install -Dm 644 fish-completions "${pkgdir}/usr/share/fish/vendor_completions.d/rbw.fish" } |