summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a906716c8b1de9181899cfb750f7200820d5b3e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: German Lashevich <german.lashevich@gmail.com>
#
# Source: https://github.com/zebradil/aur
#
# shellcheck disable=SC2034,SC2154
pkgname=rustotpony
pkgver=0.5.4
pkgrel=2
pkgdesc='RusTOTPony — CLI manager of one-time password generators like Google Authenticator'
url='https://github.com/zebradil/rustotpony'
arch=(i686 x86_64 armv6h armv7h)
license=(MIT)
install=''
options=(!debug !lto)
depends=(gcc-libs glibc)
makedepends=(rust)
conflicts=(rustotpony-bin)
provides=(totp)
source=(rustotpony-0.5.4::https://github.com/zebradil/rustotpony/archive/0.5.4.tar.gz)
build () 
{ 
    set -eo pipefail;
    cd "${pkgname}-${pkgver}";
    cargo build --release
}
package () 
{ 
    set -eo pipefail;
    _binname=totp;
    install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/${_binname}" "${pkgdir}/usr/bin/${_binname}"
}
sha256sums=('a7ba127eeae52c15bdd2d79906b611b5b17d605f0490b9e43f3e414736c236da')