# Template file for 'steamguard-cli'
pkgname=steamguard-cli
version=0.16.0
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=b57f1c2238ae3f5a08a106d8f42d5c72c288f458cdbeba0b37d5f83fb1cc3a9f

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
}
