# Template file for 'grype'
pkgname=grype
version=0.63.1
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/anchore/grype"
short_desc="Vulnerability scanner for container images and filesystems"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="Apache-2.0"
homepage="https://github.com/anchore/grype"
distfiles="https://github.com/anchore/grype/archive/refs/tags/v${version}.tar.gz"
checksum=c0cae06f51a00a9ada57dd3ddd8de052893e42620d8cee49c8874630d5d89817

post_install() {
	grype="${DESTDIR}/usr/bin/grype"
	for shell in bash fish zsh; do
		vtargetrun ${grype} completion ${shell} >grype.${shell}
		vcompletion grype.${shell} ${shell}
	done
}
