This commit is contained in:
Mario Fetka
2024-04-16 18:33:36 +02:00
parent 26b87d0069
commit eb461ac7fc
9 changed files with 142 additions and 90 deletions

View File

@@ -1,24 +0,0 @@
# Copyright 2022 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 )"
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
RESTRICT="mirror strip test bindist"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S=${WORKDIR}
src_install() {
dobin op
}

View File

@@ -0,0 +1,36 @@
# Copyright 2023 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 )
arm64? ( https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}/op_linux_arm64_v${PV}.zip )
"
S=${WORKDIR}
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 arm64"
RESTRICT="strip test bindist"
RDEPEND="${DEPEND}
acct-group/onepassword-cli
"
BDEPEND="
app-arch/unzip
acct-group/onepassword-cli
"
src_install() {
chgrp onepassword-cli op
dobin op
}
pkg_postinst() {
chmod g+s /usr/bin/op
}