void-packages/srcpkgs/sbctl/template

32 lines
904 B
Bash

# Template file for 'sbctl'
pkgname=sbctl
version=0.15.4
revision=2
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=500e8647041b9be193cf573a99b2c5b2956f11565b1aa961d62aa1666689b977
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
}