# Maintainer: Michael Cordover pkgname=fido2-hmac-secret pkgver=0.4.3 pkgrel=1 pkgdesc="A simple way to generate password-proteceted secrets from a FIDO2 authenticator with the hmac-secret extension" arch=('x86_64') url="https://github.com/mjec/fido2-hmac-secret" license=('GPL3') depends=('bash' 'libfido2' 'libcbor' 'libsodium' 'libcap') makedepends=('git') optdepends=('bash-completion: bash completion support' 'mkinitcpio: initramfs support' 'openssh: ssh-askpass support' 'libnotify: ssh-askpass support') source=( "${url}/archive/v${pkgver}.tar.gz" "${url}/releases/download/v${pkgver}/v${pkgver}.tar.gz.sig" ) validpgpkeys=( '6927F7D45F567621E14121DDFD1D670D31F82A81' # Michael Cordover; available from https://keybase.io/mjec/pgp_keys.asc?fingerprint=6927f7d45f567621e14121ddfd1d670d31f82a81 ) sha256sums=( '5f095ed0bb24054d850a3f7eab7baec4c1fa4899ee362e1e71c156c7172e650f' 'ef307befbf6105ff8fded066cc98265f20de572ec03b043b7e22542eb97e0b91' ) install="$pkgname.install" build() { cd "$srcdir/$pkgname-$pkgver" CC=gcc make all -j } package() { cd "$srcdir/$pkgname-$pkgver" # Adding file capabilities doesn't work during build, it will be done later through fido2-hmac-secret.install make DESTDIR="$pkgdir" PREFIX=/usr SETCAP_BINARY=0 install }