Package Details: totpm 0.1.2-5

Git Clone URL: https://aur.archlinux.org/totpm.git (read-only, click to copy)
Package Base: totpm
Description: A TPM-backed command line TOTP/2FA client, using fprintd for user presence checking.
Upstream URL: https://github.com/koditoriet/totpm
Licenses: MIT
Submitter: agalakhov
Maintainer: agalakhov
Last Packager: agalakhov
Votes: 0
Popularity: 0.000000
First Submitted: 2025-09-11 19:30 (UTC)
Last Updated: 2025-10-16 12:25 (UTC)

Latest Comments

agalakhov commented on 2025-10-16 12:25 (UTC)

Applied, thanks.

denkijin commented on 2025-10-16 00:44 (UTC) (edited on 2025-10-16 01:50 (UTC) by denkijin)

The PKGBUILD has an error. The sources line needs two colons after the source name

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/koditoriet/totpm/archive/refs/tags/v$pkgver.tar.gz")
EDIT

Ok I needed to fix the install script.

post_install() {
  # Wait up to 10 seconds for user 'totpm' to appear
  for i in $(seq 1 10); do
    if id totpm &>/dev/null; then
      break
    fi
    sleep 1
  done

  # Proceed only if user exists
  if id totpm &>/dev/null; then
    chown totpm:root /usr/bin/totpm
    chmod 4755 /usr/bin/totpm
    chown totpm:root /var/lib/totpm
  else
    echo "Warning: User 'totpm' not found after waiting, skipping chown 
    You will need to manually emit 'chown totpm:root /usr/bin/totpm'"
  fi
}

post_upgrade() {
  post_install
}