From 86733d50a8a8c1b50b475a2600a261cbef254678 Mon Sep 17 00:00:00 2001 From: Mads Mogensen Date: Thu, 26 Aug 2021 19:32:52 +0200 Subject: [PATCH] Add PKGBUILD The one generated with cargo-pkgbuild is really broken --- PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..08ea6a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Carson McManus +# Contributor: Mads Mogensen + +_pkgname=steamguard-cli +pkgname=${_pkgname}-git +pkgver=0.4.0.r5.g6d546e6 +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') +makedepends=('rust' 'cargo') +source=("git+https://github.com/dyc3/steamguard-cli.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' +} + +build() { + cd "${srcdir}/${_pkgname}" + cargo build --release +} + +package() { + install -Dm755 "${srcdir}/${_pkgname}/target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" +}