Files
guru/app-misc/1password-cli/1password-cli-2.34.0-r1.ebuild
Ceres ce2a6f2b77 app-misc/1password-cli: change group of installed binary
chgrp and fperms based on gui-apps/1password

Closes: https://bugs.gentoo.org/973585
Signed-off-by: Ceres <ceres@ceressees.dev>
2026-05-04 16:37:35 +01:00

30 lines
779 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="The worlds most-loved password manager CLI"
HOMEPAGE="https://1password.com"
SRC_URI="
amd64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_amd64_v${PV}.zip -> ${P}-amd64.zip )
arm64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_arm64_v${PV}.zip -> ${P}-arm64.zip )
"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="strip test bindist"
DEPEND="acct-group/onepassword-cli"
BDEPEND="app-arch/unzip"
QA_FLAGS_IGNORED="usr/bin/op"
src_install() {
dobin op
chgrp onepassword-cli "${D}/usr/bin/op" || die "Failed to set group of 1password CLI"
fperms g+s "/usr/bin/op"
}