29 lines
839 B
Plaintext
29 lines
839 B
Plaintext
# Description: Secure Boot key manager
|
|
# URL: https://github.com/Foxboron/sbctl
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: go
|
|
# Optional: asciidoc bash-completion dracut zsh
|
|
|
|
name=sbctl
|
|
version=0.14
|
|
release=1
|
|
source=(https://github.com/Foxboron/sbctl/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
prt-get isinst asciidoc || sed -i 's/sbctl completions man/sbctl completions/' Makefile
|
|
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
|
|
|
|
make sbctl
|
|
make sbctl PREFIX=$PKG/usr install
|
|
|
|
prt-get isinst asciidoc || rm -r $PKG/usr/share/man
|
|
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
|
|
prt-get isinst dracut || rm -r $PKG/usr/lib/
|
|
prt-get isinst zsh || rm -r $PKG/usr/share/zsh
|
|
|
|
rm -r $PKG/usr/share/{fish,licenses}
|
|
rmdir $PKG/usr/share || true
|
|
}
|