update pkgbuild

This commit is contained in:
Carson McManus 2023-06-23 15:41:04 -04:00
parent fe0d6e9aca
commit a72126ffcd
2 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,7 @@
_pkgname=steamguard-cli
pkgname=${_pkgname}-git
pkgver=0.4.3.r1.145c03e9
pkgver=0.8.1.r1.fe0d6e9a
pkgrel=1
pkgdesc="A command line utility to generate Steam 2FA codes and respond to confirmations."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@ -24,5 +24,6 @@ build() {
}
package() {
install -Dm755 "${srcdir}/${_pkgname}/target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm755 "${srcdir}/${_pkgname}/target/release/steamguard" "${pkgdir}/usr/bin/steamguard"
ln -s "${pkgdir}/usr/bin/steamguard" "${pkgdir}/usr/bin/${_pkgname}"
}

View file

@ -31,7 +31,7 @@ fi
# get version info
BIN_PATH="target/release/steamguard-cli"
BIN_PATH="target/release/steamguard"
RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)"
TAGGED_VERSION="$(git tag | grep "^v" | tail -n 1 | tr -d v)"
if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then