summaryrefslogtreecommitdiff
path: root/sys-cluster/kubeseal/kubeseal-0.24.5.ebuild
blob: d4f364c86e91539bbb5092d25fcd972da280b833 (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
30
31
32
# Copyright 2023 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/sealed-secrets/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~concord/distfiles/${MY_P}-deps.tar.xz"

LICENSE="Apache-2.0 BSD ISC MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="hardened"

BDEPEND=">=dev-lang/go-1.19"

RESTRICT+=" test"
S="${WORKDIR}/${MY_P}"

src_compile() {
	CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
		emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" VERSION="v${PV}" ${PN}
}

src_install() {
	dobin ${PN}
}