sbctl: run checks, update to 0.15.4

This commit is contained in:
dkwo 2023-09-17 09:43:11 -04:00 committed by classabbyamp
parent 8fb57e4046
commit c78202f60d
1 changed files with 19 additions and 10 deletions

View File

@ -1,26 +1,35 @@
# Template file for 'sbctl'
pkgname=sbctl
version=0.10
revision=3
version=0.15.4
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=22c394e1ae3f80eafe85e331ca4499d2df28bebcc4421c0af89241b897a17774
checksum=500e8647041b9be193cf573a99b2c5b2956f11565b1aa961d62aa1666689b977
make_dirs="/var/lib/sbctl 0700 root root"
export GOFLAGS="-buildmode=pie"
do_build() {
make
}
do_install() {
make install PREFIX=/usr DESTDIR=$DESTDIR
# TODO: install completions, sbctl tries to run lsblk when generating them
do_check() {
go test -v ./...
}
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
}