aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahil Bhimjiani <me@rahil.rocks>2024-03-07 17:27:58 +0530
committerRahil Bhimjiani <me@rahil.rocks>2024-03-07 17:29:19 +0530
commitfea8b9625e9f98ff31942b7ead26208aaafe1634 (patch)
tree98d9b401b304f29bd8d7f5acee17c7066cd90a26 /app-admin
parentapp-misc/nwg-shell-wallpapers: drop stray file (diff)
downloadguru-fea8b9625e9f98ff31942b7ead26208aaafe1634.tar.gz
guru-fea8b9625e9f98ff31942b7ead26208aaafe1634.tar.bz2
guru-fea8b9625e9f98ff31942b7ead26208aaafe1634.zip
app-admin/bitwarden-cli: add 2024.2.1
1. fix QA warning Closes: https://bugs.gentoo.org/925573 Closes: https://bugs.gentoo.org/925572 Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/bitwarden-cli/Manifest2
-rw-r--r--app-admin/bitwarden-cli/bitwarden-cli-2024.2.1.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/app-admin/bitwarden-cli/Manifest b/app-admin/bitwarden-cli/Manifest
index c7b823201..7c5d3dd61 100644
--- a/app-admin/bitwarden-cli/Manifest
+++ b/app-admin/bitwarden-cli/Manifest
@@ -1,3 +1,5 @@
DIST bitwarden-cli-2024.2.0-pkg-cache.tar.xz 13081348 BLAKE2B c0f56169752a8659f4a42b36a1fb48604d968a82853f8a860fb03455b499be03ba6cdacc643188b86c3673ffa26ab8ed2a825bdf6a37996189f851ad5e638b5b SHA512 f1de3477537b9f95dc38353ce1bf1d22e7cf8b92b0012befe2c0db4c62dd1f7fc419ba06518318fed90deb9a8627e35422daee8ba70f07e02f3c8eb43678a7c1
DIST bitwarden-cli-2024.2.0.tar.gz 20328706 BLAKE2B 0f8120b7ddbf74a6e5c3d7a63ad72dd3ecea3f32c46b488b21bfa2ca877724841a5dd9318854a0204dc7015ea104ffed0783a8301bf57a53f9a5d4b9d1ff18e1 SHA512 8a9f69242a945b17c944c699649b9f2524d5ae3b07f97d296ae01bde44b9081b9262fa80028c28a1f876ce789d4daac103d2c15c01a9af07e5c7159f43d427b6
+DIST bitwarden-cli-2024.2.1.tar.gz 20495977 BLAKE2B 18059a640669ed6f62afcca8b49279f5e3be4c9bf750c3d96de1533895fa49c50ec9d640a79175d9fc4a059108c2c818110fa636513ba056bec90ea36d595114 SHA512 4fa123b9081b81e9df02cde85b61e673d5da4c3d65ebbe298633eadf773065a0108dfc43a44e07e54fd7c085d09a97f797b5f2c6139850c445d282785075196c
+DIST bitwarden-clients-82998d8.tar.xz 206299056 BLAKE2B 3ffeedfebfa18c4dee6148da47d1942dbb15890ffb7c6469f53d349c8233204950be09cb83542b1bc1cba4f099bc3d51e7f2ababd9eb871373183837f31d2f07 SHA512 c5e4bd8163e2d3d505aea3719ef675bf525ca37e3451c8e12d3a3c69a91cdf8184f83ec3033f61c7ab3d70a288d5c0f5e6c739eff5542454ecb9979e5a3a558d
DIST bitwarden-clients-a1a5c4b.tar.xz 204680568 BLAKE2B dd7ae09792831dacf9e7c110a508315e8d57c3231c6c32014e7b842ffc01a046fec03f375c48afd40379ba2853159e594a54b3f8ec229c1568ba3d1b8c054335 SHA512 5644d0b53c525164c2af14036dd7d432be9a943b55df2aef9922329326b164b31336bd53e2f9f2eb35a858f974d8fc0a3bd3aac6e42b821d5d4634ca714a51c3
diff --git a/app-admin/bitwarden-cli/bitwarden-cli-2024.2.1.ebuild b/app-admin/bitwarden-cli/bitwarden-cli-2024.2.1.ebuild
new file mode 100644
index 000000000..ec43c4616
--- /dev/null
+++ b/app-admin/bitwarden-cli/bitwarden-cli-2024.2.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit check-reqs shell-completion
+
+DESCRIPTION="CLI frontend client connects to Bitwarden comapatible password manager server"
+HOMEPAGE="https://github.com/bitwarden/clients/tree/main/apps/cli"
+
+BW_CLIENTS_COMMIT="82998d8"
+SRC_URI="
+ https://github.com/bitwarden/clients/archive/refs/tags/cli-v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/rahilarious/gentoo-distfiles/releases/download/bitwarden-clients-${BW_CLIENTS_COMMIT}/deps.tar.xz -> bitwarden-clients-${BW_CLIENTS_COMMIT}.tar.xz
+ https://github.com/rahilarious/gentoo-distfiles/releases/download/${PN}-2024.2.0/pkg-cache.tar.xz -> ${PN}-2024.2.0-pkg-cache.tar.xz
+"
+
+S="${WORKDIR}/clients-cli-v${PV}"
+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-bin"
+BDEPEND="
+ net-libs/nodejs:0/18[npm]
+"
+
+QA_PRESTRIPPED="usr/bin/bw"
+QA_FLAGS_IGNORED="${QA_PRESTRIPPED}"
+
+CHECKREQS_MEMORY=2G
+CHECKREQS_DISK_BUILD=2G
+
+pkg_pretend() {
+ einfo ""
+ einfo "#################################################"
+ einfo "Precompiled alternative to this package is available:"
+ einfo " ${CATEGORY}/${PN}-bin"
+ einfo "#################################################"
+ einfo ""
+ check-reqs_pkg_pretend
+}
+
+src_prepare() {
+ default
+ mv -v ../node_modules ./ || die
+}
+
+src_compile() {
+ pushd apps/cli || die
+ PKG_CACHE_PATH="${WORKDIR}"/.pkg-cache npm --verbose --offline run dist:lin \
+ || die "Build failed! Try prebuilt from upstream ${CATEGORY}/${PN}-bin"
+ ./dist/linux/bw completion --shell zsh > bw.zsh || die
+ popd || die
+}
+
+src_install() {
+ dobin apps/cli/dist/linux/bw
+ newzshcomp apps/cli/bw.zsh _bw
+}