From aa3df29a7249694a60190b96385136043ee7db3f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 28 Aug 2022 02:55:12 +0100 Subject: gentoo auto-resync : 28:08:2022 - 02:55:12 --- app-containers/syft/syft-0.54.0.ebuild | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app-containers/syft/syft-0.54.0.ebuild (limited to 'app-containers/syft/syft-0.54.0.ebuild') diff --git a/app-containers/syft/syft-0.54.0.ebuild b/app-containers/syft/syft-0.54.0.ebuild new file mode 100644 index 000000000000..266f7cc93850 --- /dev/null +++ b/app-containers/syft/syft-0.54.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module +GIT_COMMIT=21eb77206020c04c9ca5316562e32179c73926a9 + +DESCRIPTION="Generate a Software Bill of Materials from container images and filesystems" +HOMEPAGE="https://www.anchore.com" +SRC_URI="https://github.com/anchore/syft/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +# tests require a running docker daemon +RESTRICT="test" + +src_compile() { + local BUILD_DATE + BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) + ego build -o bin/syft -ldflags " + -extldflags '-static' + -X github.com/anchore/syft/internal/version.version=${PV} + -X github.com/anchore/syft/internal/version.gitCommit=${GIT_COMMIT} + -X github.com/anchore/syft/internal/version.buildDate=${BUILD_DATE} + -X github.com/anchore/syft/internal/version.gitDescription=v${PV} + " ./cmd/syft +} + +src_install() { + dobin bin/* +} -- cgit v1.2.3