2021-08-26 19:32:52 +02:00
|
|
|
# Maintainer: Carson McManus <carson.mcmanus1@gmail.com>
|
|
|
|
# Contributor: Mads Mogensen <mads256h at gmail dot com>
|
|
|
|
|
|
|
|
_pkgname=steamguard-cli
|
|
|
|
pkgname=${_pkgname}-git
|
2023-06-23 21:41:04 +02:00
|
|
|
pkgver=0.8.1.r1.fe0d6e9a
|
2021-08-26 19:32:52 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A command line utility to generate Steam 2FA codes and respond to confirmations."
|
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
|
|
|
url="https://github.com/dyc3/steamguard-cli"
|
|
|
|
license=('GPL3')
|
2021-08-30 02:38:39 +02:00
|
|
|
makedepends=('rust' 'cargo' 'git')
|
2021-08-26 19:32:52 +02:00
|
|
|
source=("git+https://github.com/dyc3/steamguard-cli.git")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
2022-02-02 16:34:01 +01:00
|
|
|
git describe --long --tags --match 'v*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
|
2021-08-26 19:32:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
cargo build --release
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-06-23 21:41:04 +02:00
|
|
|
install -Dm755 "${srcdir}/${_pkgname}/target/release/steamguard" "${pkgdir}/usr/bin/steamguard"
|
|
|
|
ln -s "${pkgdir}/usr/bin/steamguard" "${pkgdir}/usr/bin/${_pkgname}"
|
2021-08-26 19:32:52 +02:00
|
|
|
}
|