summaryrefslogtreecommitdiff
path: root/dev-util/trivy/trivy-0.55.2.ebuild
blob: e853b15cadafb8878471ffd74ba469f761228d9e (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Vulnerability scanner for container images, file systems, and Git repos"
HOMEPAGE="https://aquasecurity.github.io/trivy"
SRC_URI="
	https://github.com/aquasecurity/trivy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/ixti/trivy/releases/download/v${PV}/${P}-vendor.tar.xz
"

LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense"
SLOT="0"
KEYWORDS="~amd64"

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

src_compile() {
	ego build -ldflags="-s -X github.com/aquasecurity/trivy/pkg/version/app.ver=${PV}" ./cmd/trivy
}

src_install() {
	dobin trivy

	default
}