Package Details: steamguard-cli-bin 0.17.1-7

Git Clone URL: https://aur.archlinux.org/steamguard-cli-bin.git (read-only, click to copy)
Package Base: steamguard-cli-bin
Description: A linux utility for generating 2FA codes for Steam and managing Steam trade confirmations.
Upstream URL: https://github.com/dyc3/steamguard-cli
Licenses: GPL3
Conflicts: steamguard-cli, steamguard-cli-git
Provides: steamguard-cli
Submitter: neko_ayaya
Maintainer: lapsus
Last Packager: lapsus
Votes: 3
Popularity: 0.020609
First Submitted: 2024-08-22 11:48 (UTC)
Last Updated: 2026-04-02 15:47 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

gwuensch commented on 2025-12-15 16:30 (UTC) (edited on 2025-12-18 19:46 (UTC) by gwuensch)

Thanks for the update. Can you please also remove the pkgver() function and the respective makededepends? That function is only intended for VCS packages, which this package is not. To check for new releases, you can use something like nvchecker instead.

To clarify, why doing this will cause trouble: makepkg runs pkgver() only after downloading and extracting the sources. That means the pkgver might be bumped, while the source used to build the package is still the old one. This is not a problem with VCS packages, as the pkgver is determined by looking at the locally cloned source tree. Also, there's no checksum that would need to be updated by hand.

gwuensch commented on 2025-10-17 21:39 (UTC)

steamguard also provides shell completion script. These could be generated and installed like this:

diff --git a/PKGBUILD b/PKGBUILD
index 03b632e..8d63138 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,10 @@ pkgdesc="A linux utility for generating 2FA codes for Steam and managing Steam t
 arch=('x86_64')
 url='https://github.com/dyc3/steamguard-cli'
 license=('GPL3')
-makedepends=('curl' 'jq')
+optdepends=(
+   'bash-completion: bash completion'
+   'zsh: zsh completion'
+)
 provides=('steamguard')
 source=(
    "https://github.com/dyc3/steamguard-cli/releases/download/v${pkgver}/steamguard"
@@ -16,11 +19,12 @@ sha256sums=(
    'dfde53c5f594815b69349e6b70cbb26fbf9ddb30938aa13352048967279ac501'
 )

-pkgver() {
-   curl -s "https://api.github.com/repos/dyc3/steamguard-cli/releases/latest" | 
-   jq -r '.tag_name' | sed 's/^v//'
-}
-
 package() {
    install -Dm755 "${srcdir}"/steamguard "${pkgdir}/usr/bin/steamguard"
+
+   # Generate shell completions
+   "${pkgdir}/usr/bin/steamguard" completion --shell bash | \
+     install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/steamguard"
+   "${pkgdir}/usr/bin/steamguard" completion --shell zsh | \
+     install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_steamguard"
 }

Elvish, Fish and PowerShell are also supported, but I'm not familiar with their completion systems. I can take a look if someone also needs these.

gwuensch commented on 2025-10-09 19:40 (UTC)

The pkgver() function should only be used for VCS packages. The checksum would need to be updated manually either way. Please remove it.

Damgaldor commented on 2025-08-24 14:22 (UTC)

Weird. Clean build indeed fixed it, thanks.

lapsus commented on 2025-08-21 23:01 (UTC)

kinda strange, everything's fine on my side. Maybe try to rebuild from scratch?

Damgaldor commented on 2025-08-21 19:12 (UTC)

checksum fails