void-packages/srcpkgs/sbctl/template
2024-11-26 17:34:12 +01:00

31 lines
902 B
Bash

# Template file for 'sbctl'
pkgname=sbctl
version=0.16
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/foxboron/sbctl"
go_package="${go_import_path}/cmd/sbctl"
go_ldflags="-X ${go_import_path}.Version=${version}"
hostmakedepends="asciidoc"
checkdepends="openssl-devel"
short_desc="Secure Boot key manager"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://github.com/Foxboron/sbctl"
distfiles="https://github.com/Foxboron/sbctl/archive/${version}.tar.gz"
checksum=ca6d810b1b6e63318ba34320043e8b95d8b40df6e140f5170c4a673ed0954ee1
make_dirs="/var/lib/sbctl 0700 root root"
export GOFLAGS="-buildmode=pie"
post_install() {
make man
vman docs/sbctl.8
vlicense LICENSE
local SBCTL="${DESTDIR}/usr/bin/sbctl"
for shell in bash fish zsh; do
vtargetrun ${SBCTL} completion ${shell} > sbctl.${shell}
vcompletion sbctl.${shell} ${shell}
done
}