# Template file for 'checksec'
pkgname=checksec
version=3.2.0
revision=1
build_style=go
build_helper=qemu
go_import_path=github.com/slimm609/checksec/v3
short_desc="Check for protections like RELRO, NoExec, Stack protection, ASLR, PIE"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://github.com/slimm609/checksec"
changelog="https://github.com/slimm609/checksec/blob/main/CHANGELOG.md"
distfiles="https://github.com/slimm609/checksec/archive/${version}.tar.gz"
checksum=3ea46986821070ed06fef5215b2a83a9076115a865da70874e19f214db2c8d83

post_install() {
	vman extras/man/checksec.1
	vlicense LICENSE

	for shell in bash zsh fish; do
		vtargetrun "${DESTDIR}/usr/bin/checksec" completion "$shell" >"completion.$shell"
		vcompletion "completion.$shell" "$shell"
	done
}
