From e057f9b319e983406280ad234da3c762571dac3c Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 5 Dec 2026 05:47:34 +1100 Subject: [PATCH] app-admin/proton-pass-cli-bin: new package, add 2.8.1 Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Zakk --- .github/workflows/overlay.toml | 7 +++ app-admin/proton-pass-cli-bin/Manifest | 2 + app-admin/proton-pass-cli-bin/metadata.xml | 11 ++++ .../proton-pass-cli-bin-2.8.1.ebuild | 62 +++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 app-admin/proton-pass-cli-bin/Manifest create mode 100644 app-admin/proton-pass-cli-bin/metadata.xml create mode 100644 app-admin/proton-pass-cli-bin/proton-pass-cli-bin-2.8.1.ebuild diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index eaaf64334b..bbbb4f611c 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -108,6 +108,13 @@ filter = ".Releases[0].Version" github_account = "zakkaus" autobump = true +["app-admin/proton-pass-cli-bin"] +source = "jq" +url = "https://proton.me/download/pass-cli/versions.json" +filter = ".passCliVersions.version" +github_account = "zakkaus" +autobump = true + ["app-admin/qm"] source = "npm" npm = "@yc-software/qm" diff --git a/app-admin/proton-pass-cli-bin/Manifest b/app-admin/proton-pass-cli-bin/Manifest new file mode 100644 index 0000000000..9ecc234296 --- /dev/null +++ b/app-admin/proton-pass-cli-bin/Manifest @@ -0,0 +1,2 @@ +DIST proton-pass-cli-bin-2.8.1-amd64 57073824 BLAKE2B 6eea53fbd39fae7cc3606608a291a5805473bc80d234f5f9a7bb95fe3a7c561660997ea8c232a2555778edf1b22b8a35386c8870e9df4a4e6ec0cc9e85889328 SHA512 3e33f033ab9874be16f127896b06d8950edc0b0dd27263c2d0cf465cb6b20b8d66f6b77d86cfe0a03bd62bea3ae0bd91dcc110d8812fb14d9f9f8c97be4963fb +DIST proton-pass-cli-bin-2.8.1-arm64 39000248 BLAKE2B 008fc97196f6a22f7f5b7470bad20c35bda850440bddc4a32f8825297c9906e5568553462129a4ede2ee6aadc3459268e982cb292d0d122b77aed7f32447cfb6 SHA512 0733986f42224f4fd7dbfa284d6daebbfe889d2c32a99aa33d2c0e3297ded5554d958d2612d87ec566877766ab743fe39c430e9104a54fe7b471842124a2d7df diff --git a/app-admin/proton-pass-cli-bin/metadata.xml b/app-admin/proton-pass-cli-bin/metadata.xml new file mode 100644 index 0000000000..0a1be4120a --- /dev/null +++ b/app-admin/proton-pass-cli-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + zakk@gentoozh.org + Zakk + + + protonpass/pass-cli + + diff --git a/app-admin/proton-pass-cli-bin/proton-pass-cli-bin-2.8.1.ebuild b/app-admin/proton-pass-cli-bin/proton-pass-cli-bin-2.8.1.ebuild new file mode 100644 index 0000000000..523446ef6e --- /dev/null +++ b/app-admin/proton-pass-cli-bin/proton-pass-cli-bin-2.8.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit shell-completion toolchain-funcs + +DESCRIPTION="Command-line client for Proton Pass" +HOMEPAGE=" + https://proton.me/pass + https://github.com/protonpass/pass-cli +" +SRC_URI=" + amd64? ( + https://proton.me/download/pass-cli/${PV}/pass-cli-linux-x86_64 + -> ${P}-amd64 + ) + arm64? ( + https://proton.me/download/pass-cli/${PV}/pass-cli-linux-aarch64 + -> ${P}-arm64 + ) +" +S="${WORKDIR}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" + +RDEPEND=" + amd64? ( >=sys-libs/glibc-2.34 ) + arm64? ( >=sys-libs/glibc-2.30 ) +" + +QA_PREBUILT="usr/bin/pass-cli" + +src_unpack() { + cp "${DISTDIR}/${A}" pass-cli || die + chmod +x pass-cli || die +} + +src_compile() { + if ! tc-is-cross-compiler; then + local shell + for shell in bash fish zsh; do + ./pass-cli completions ${shell} > "${T}/pass-cli.${shell}" || die + done + else + ewarn "shell completion files were skipped due to cross-compilation" + fi +} + +src_install() { + dobin pass-cli + + newenvd - 50proton-pass-cli <<<"PROTON_PASS_NO_UPDATE_CHECK=1" + + if ! tc-is-cross-compiler; then + newbashcomp "${T}"/pass-cli.bash pass-cli + newfishcomp "${T}"/pass-cli.fish pass-cli.fish + newzshcomp "${T}"/pass-cli.zsh _pass-cli + fi +}