mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
34 lines
920 B
Plaintext
34 lines
920 B
Plaintext
# Contributor: replydev <commoncargo@tutanota.com>
|
|
# Maintainer: replydev <commoncargo@tutanota.com>
|
|
pkgname=cotp
|
|
pkgver=1.9.7
|
|
pkgrel=0
|
|
pkgdesc="Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality"
|
|
url="https://github.com/replydev/cotp"
|
|
# loongarch64 and s390x cannot compile at the moment
|
|
arch="all !loongarch64 !s390x"
|
|
license="GPL-3.0-only"
|
|
makedepends="cargo cargo-auditable"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/replydev/cotp/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/cotp -t "$pkgdir"/usr/bin/
|
|
}
|
|
sha512sums="
|
|
1574aadd34287637892a5d6f2e65f03d5f636590d1498d7710c0d80af0bcd6d94ca3acfb7eb9b62b8d5d457b49d49acb20ad93c1865371da1ac04e58ac31a6eb cotp-1.9.7.tar.gz
|
|
"
|