dev-util/trivy: add 0.55.2, drop 0.55.1-r1

Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
Alexey Zapparov
2024-09-17 18:17:50 +02:00
parent 8b8c5e87e1
commit cb27a6667f
2 changed files with 3 additions and 5 deletions

View File

@@ -0,0 +1,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
}