From 3a68679d732ef1ca87530fb79a991cdb476bd217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pinto?= Date: Tue, 10 Jun 2025 03:29:08 +0100 Subject: [PATCH] New package: trivy-0.63.0 Co-authored-by: Duncaen --- srcpkgs/trivy/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/trivy/template diff --git a/srcpkgs/trivy/template b/srcpkgs/trivy/template new file mode 100644 index 00000000000..e311efbad50 --- /dev/null +++ b/srcpkgs/trivy/template @@ -0,0 +1,20 @@ +# Template file for 'trivy' +pkgname=trivy +version=0.63.0 +revision=1 +build_style=go +go_import_path="github.com/aquasecurity/trivy" +go_package="${go_import_path}/cmd/trivy" +go_ldflags="-X ${go_import_path}/pkg/version/app.ver=$version" +short_desc="Comprehensive vulnerability scanner for containers" +maintainer="Orphaned " +license="Apache-2.0" +homepage="https://github.com/aquasecurity/trivy" +distfiles="https://github.com/aquasecurity/trivy/archive/refs/tags/v${version}.tar.gz" +checksum=ac26dcb16072e674b8a3bffa6fbd817ec5baa125660b5c49d9ad8659e14d0800 + +# those tests are wrong and expect `dev` instead of the version. +make_check_args="-run !(^(Test_showVersion|TestPrintVersion)$)" + +# fix: collect2: fatal error: cannot find 'ld' +export LDFLAGS="-fuse-ld=bfd"