From 19dc4e1b7ddb1b8a68feb70494aab4d5f61a314f Mon Sep 17 00:00:00 2001 From: Daniel Lewan Date: Wed, 17 May 2023 10:06:57 +0200 Subject: [PATCH] syft: update to 0.80.0. --- srcpkgs/syft/template | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/srcpkgs/syft/template b/srcpkgs/syft/template index 131419513315..298fa36ce50f 100644 --- a/srcpkgs/syft/template +++ b/srcpkgs/syft/template @@ -1,12 +1,28 @@ # Template file for 'syft' pkgname=syft -version=0.76.0 -revision=2 +version=0.80.0 +revision=1 build_style=go +build_helper=qemu go_import_path="github.com/anchore/syft/cmd/syft" short_desc="SBOM generator CLI for container images, filesystems and more" maintainer="Jan Christian Grünhage " license="Apache-2.0" homepage="https://github.com/anchore/syft" distfiles="https://github.com/anchore/syft/archive/refs/tags/v${version}.tar.gz" -checksum=d8a439850aa93ebd6fc01c5514b3bd70ae73965c9fea172c26843fcc8d0b5307 +checksum=f53b05b2092118c02010c9be35c5a094834afbd057a2c0cbebe08333b52de76d + +post_build() { + local cli=$(find $GOPATH/bin -name syft) + for shell in bash fish zsh + do + vtargetrun "$cli" completion "$shell" >"completion.$shell" + done +} + +post_install() { + for shell in bash fish zsh + do + vcompletion "completion.$shell" "$shell" + done +}