26 lines
858 B
Bash
26 lines
858 B
Bash
# Template file for 'syft'
|
|
pkgname=syft
|
|
version=1.16.0
|
|
revision=1
|
|
build_style=go
|
|
build_helper=qemu
|
|
go_import_path="github.com/anchore/syft"
|
|
go_package="github.com/anchore/syft/cmd/syft"
|
|
go_ldflags="-X main.version=${version}"
|
|
short_desc="SBOM generator CLI for container images, filesystems and more"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/anchore/syft"
|
|
changelog="https://github.com/anchore/syft/releases"
|
|
distfiles="https://github.com/anchore/syft/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=ebf48d31c816a6d1689ed281cf489bf0813bfdaaa91c67dcb40f21447cf15dfe
|
|
make_check=no # tests require a running docker daemon
|
|
|
|
post_install() {
|
|
syft="${DESTDIR}/usr/bin/syft"
|
|
for shell in bash fish zsh; do
|
|
vtargetrun ${syft} completion ${shell} >syft.${shell}
|
|
vcompletion syft.${shell} ${shell}
|
|
done
|
|
}
|