void-packages/srcpkgs/steamguard-cli/template

22 lines
786 B
Bash

# Template file for 'steamguard-cli'
pkgname=steamguard-cli
version=0.14.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=ff4a80355cba37339dbf3e31edd3ce5f11593a25c8d162d4485a6b8d8414fdb8
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
}