-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a0dc98
commit 7bc90f9
Showing
4 changed files
with
649 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module tmpfiles | ||
|
||
DESCRIPTION="The official CLI for interacting with your Doppler secrets and configuration" | ||
HOMEPAGE="https://gitlab.com/gitlab-org/cli" | ||
SRC_URI="https://github.com/DopplerHQ/cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" | ||
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" | ||
|
||
BDEPEND=">=dev-lang/go-1.21" | ||
|
||
RESTRICT="test" | ||
|
||
src_unpack() { | ||
default | ||
mv "cli-${PV}" "${P}" | ||
} | ||
|
||
src_compile() { | ||
ego build -o bin/doppler -ldflags "-s -w -X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v${PV}" . | ||
} | ||
|
||
src_install() { | ||
dobin "${S}/bin/${PN}" | ||
} |
Oops, something went wrong.