Files
guru/app-admin/bitwarden-cli-bin/bitwarden-cli-bin-2024.2.1.ebuild
Rahil Bhimjiani 5d26b0e81b app-admin/bitwarden-cli-bin: add 2024.2.1
1. Don't want to see any errors and die if you fail

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
2024-03-07 16:39:17 +05:30

36 lines
771 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
DESCRIPTION="Precompiled CLI frontend which connects to Bitwarden comapatible servers"
HOMEPAGE="https://github.com/bitwarden/clients/tree/main/apps/cli"
SRC_URI="
https://github.com/bitwarden/clients/releases/download/cli-v${PV}/bw-linux-${PV}.zip
"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
# non-stripped binary is of 99M but works
# stripped bianry is of 44M but doesnt work
RESTRICT='strip'
RDEPEND="!app-admin/bitwarden-cli"
BDEPEND="app-arch/unzip"
QA_PREBUILT="usr/bin/bw"
src_compile() {
./bw completion --shell zsh > bw.zsh 2> /dev/null || die
}
src_install() {
dobin bw
newzshcomp bw.zsh _bw
}