25 lines
814 B
Bash
25 lines
814 B
Bash
# Template file for 'grype'
|
|
pkgname=grype
|
|
version=0.78.0
|
|
revision=1
|
|
build_style=go
|
|
build_helper=qemu
|
|
go_import_path="github.com/anchore/grype"
|
|
go_package="github.com/anchore/grype/cmd/grype"
|
|
go_ldflags="-X main.version=${version}"
|
|
short_desc="Vulnerability scanner for container images and filesystems"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/anchore/grype"
|
|
changelog="https://github.com/anchore/grype/releases"
|
|
distfiles="https://github.com/anchore/grype/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=64da7755b8f4169003a66badcb8f9432138d1ff59f805b131d9ac5a44391dbd4
|
|
|
|
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
|
|
}
|