mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
sbctl: run checks, update to 0.15.4
This commit is contained in:
parent
8fb57e4046
commit
c78202f60d
1 changed files with 19 additions and 10 deletions
|
@ -1,26 +1,35 @@
|
||||||
# Template file for 'sbctl'
|
# Template file for 'sbctl'
|
||||||
pkgname=sbctl
|
pkgname=sbctl
|
||||||
version=0.10
|
version=0.15.4
|
||||||
revision=3
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
|
build_helper=qemu
|
||||||
go_import_path="github.com/foxboron/sbctl"
|
go_import_path="github.com/foxboron/sbctl"
|
||||||
|
go_package="${go_import_path}/cmd/sbctl"
|
||||||
|
go_ldflags="-X ${go_import_path}.Version=${version}"
|
||||||
hostmakedepends="asciidoc"
|
hostmakedepends="asciidoc"
|
||||||
|
checkdepends="openssl-devel"
|
||||||
short_desc="Secure Boot key manager"
|
short_desc="Secure Boot key manager"
|
||||||
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/Foxboron/sbctl"
|
homepage="https://github.com/Foxboron/sbctl"
|
||||||
distfiles="https://github.com/Foxboron/sbctl/archive/${version}.tar.gz"
|
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() {
|
do_check() {
|
||||||
make
|
go test -v ./...
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make install PREFIX=/usr DESTDIR=$DESTDIR
|
|
||||||
# TODO: install completions, sbctl tries to run lsblk when generating them
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
make man
|
||||||
|
vman docs/sbctl.8
|
||||||
vlicense LICENSE
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue