blob: 0976779c33fc564b843e01209243975aae2d6fdc (
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
33
34
35
36
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
# update this on every bump
GIT_COMMIT=fe98c8a2
DESCRIPTION="terminal based UI to manage kubernetes clusters"
HOMEPAGE="https://github.com/wagoodman/dive"
SRC_URI="https://github.com/wagoodman/dive/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/dive/releases/download/v${PV}/${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" # no tests
BDEPEND=">=dev-lang/go-1.24.1"
src_compile() {
local ldflags=(
-w
-X main.version=${PV}
-X main.commit=${GIT_COMMIT}
-X main.buildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)
)
ego build -o bin/dive -ldflags "${ldflags[*]}" .
}
src_install() {
dobin bin/dive
einstalldocs
}
|