mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-06 21:25:02 +02:00
34 lines
799 B
Bash
34 lines
799 B
Bash
# Copyright 2023-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit go-module
|
|
|
|
MY_PN="sealed-secrets"
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
DESCRIPTION="Client-side utility for one-way encrypted secrets in kubernetes"
|
|
HOMEPAGE="https://github.com/bitnami-labs/sealed-secrets"
|
|
SRC_URI="https://github.com/bitnami-labs/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
|
SRC_URI+=" https://dev.gentoo.org/~concord/distfiles/${MY_P}-deps.tar.xz"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="Apache-2.0 BSD ISC MIT"
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
IUSE="hardened"
|
|
|
|
BDEPEND=">=dev-lang/go-1.19"
|
|
|
|
RESTRICT+=" test"
|
|
|
|
src_compile() {
|
|
CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
|
|
emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" VERSION="v${PV}" ${PN}
|
|
}
|
|
|
|
src_install() {
|
|
dobin ${PN}
|
|
}
|