mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-31 11:22:38 +02:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
# Maintainer:
|
|
pkgname=steamguard-cli
|
|
pkgver=0.17.1
|
|
pkgrel=0
|
|
pkgdesc="Command line utility for setting up and using Steam Mobile Authenticator"
|
|
url="https://github.com/dyc3/steamguard-cli"
|
|
# ring
|
|
arch="all !ppc64le !s390x !riscv64"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="cargo cargo-auditable openssl-dev"
|
|
subpackages="$pkgname-bash-completion $pkgname-zsh-completion"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/dyc3/steamguard-cli/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # cargo fetch
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
|
|
mkdir -p completions
|
|
target/release/steamguard completion --shell bash > completions/steamguard
|
|
target/release/steamguard completion --shell zsh > completions/_steamguard
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/steamguard -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 completions/steamguard \
|
|
-t "$pkgdir"/usr/share/bash-completion/completions/
|
|
install -Dm644 completions/_steamguard \
|
|
-t "$pkgdir"/usr/share/zsh/site-functions/
|
|
}
|
|
|
|
sha512sums="
|
|
b97e010e12fee72ccabff71f4f532ddae90cb1d3c116db3bea7c24d1ce4a1bbd791ba1b52830e42fca7137260b4636163e63f5a7f4ac3fbef1aa909b5332d40b steamguard-cli-0.17.1.tar.gz
|
|
"
|