summaryrefslogtreecommitdiff
path: root/app-misc/1password-cli/1password-cli-2.39.0.ebuild
blob: c805ed43339fcb6a6ae405251c4bb88ad082cfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="The world’s 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"
}