blob: e255e650198330f6b761fe20bf52c23e6258908d (
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
|
# Maintainer: Stipe Kotarac <stipe@kotarac.net>
pkgname=totp-rs
_pkgname=totp
pkgver=0.2.1
pkgrel=1
pkgdesc='CLI tool for generating TOTP codes.'
url='https://github.com/kotarac/totp'
source=("https://github.com/kotarac/totp/archive/v${pkgver}.tar.gz")
arch=(x86_64)
license=(MIT)
makedepends=(cargo)
sha256sums=('4013145181626a56dc636fee45649df308fdba92da25e8cc8d5aa89ea4da29ea')
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}/"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build () {
cd "${srcdir}/${_pkgname}-${pkgver}/"
cargo build --frozen --release --all-features
}
package() {
install -m755 -D "${srcdir}/${_pkgname}-${pkgver}/target/release/totp" "${pkgdir}/usr/bin/totp"
install -m644 -D "${srcdir}/${_pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|