void-packages/srcpkgs/steamguard-cli/template

22 lines
786 B
Bash

# Template file for 'steamguard-cli'
pkgname=steamguard-cli
version=0.12.5
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
short_desc="Utility for Steam 2FA and for managing trade confirmations"
maintainer="Filip Rojek <filip@filiprojek.cz>"
license="GPL-3.0-only"
homepage="https://github.com/dyc3/steamguard-cli"
changelog="https://github.com/dyc3/steamguard-cli/releases"
distfiles="https://github.com/dyc3/steamguard-cli/archive/v${version}/steamguard-cli-${version}.tar.gz"
checksum=fce353371010cbc298e6dc2d7063742178639eb90127b752d85c3cf92a46661d
post_install() {
for shell in bash zsh fish; do
vtargetrun ${DESTDIR}/usr/bin/steamguard completion --shell ${shell} > completion.${shell}
vcompletion completion.${shell} ${shell} steamguard
done
}