summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a190693276e0e34914e47046cf6260ce2e180dc (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
# Maintainer: German Lashevich <german.lashevich@gmail.com>
#
# Source: https://github.com/zebradil/aur
#
# shellcheck disable=SC2034,SC2154
pkgname=rustotpony
pkgver=0.4.4
pkgrel=3
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=''
depends=(gcc-libs glibc)
makedepends=(cargo)
conflicts=(rustotpony-bin)
provides=(totp)
source=(rustotpony-0.4.4::https://github.com/zebradil/rustotpony/archive/0.4.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=('72fadf452acc27601b285fd049c5606cccf7292d8dc5b672e539c3c851b3d0b6')