# Maintainer: Patrycja Rosa pkgname=sbctl pkgver=0.11 pkgrel=7 pkgdesc="Secure Boot key manager" url="https://github.com/Foxboron/sbctl/" arch="all" license="MIT" depends="binutils lsblk" makedepends="asciidoc go" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/Foxboron/sbctl/releases/download/$pkgver/sbctl-$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make ./sbctl completion bash > sbctl.bash ./sbctl completion fish > sbctl.fish ./sbctl completion zsh > sbctl.zsh } check() { make test } package() { install -D -m755 sbctl -t "$pkgdir"/usr/bin install -D -m644 sbctl.bash \ "$pkgdir"/usr/share/bash-completion/completions/sbctl install -D -m644 sbctl.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/sbctl.fish install -D -m644 sbctl.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_sbctl install -D -m644 docs/sbctl.8 \ -t "$pkgdir"/usr/share/man/man8 } sha512sums=" 88d23bf40af4f19dc6b1de17df75989ec2a6e52f68bdb444bd4619a78c0ac1f2d4f6a0182ad251094884a448dc99f08d3dd39d9bb78b595ae6ed0227a78a7847 sbctl-0.11.tar.gz "