Files
guru/dev-util/trivy/trivy-0.55.2.ebuild
Alexey Zapparov cb27a6667f dev-util/trivy: add 0.55.2, drop 0.55.1-r1
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
2024-09-17 18:18:02 +02:00

32 lines
711 B
Bash

# 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
}