# Maintainer: Eirik Furuseth <alpine@heplaphon.com>
pkgname=ripasso-cursive
_pkgrelname=ripasso
pkgver=0.7.0
pkgrel=0
pkgdesc="A password manager that uses the file format of the standard unix password manager 'pass', implemented in rust."
url="https://github.com/cortex/ripasso/"
arch="all !s390x !riscv64 !armhf"
license="GPL-3.0-or-later"
makedepends="
	cargo
	cargo-auditable
	clang-dev
	gpgme-dev
	libgpg-error-dev
	libxcb-dev
	nettle-dev
	openssl-dev>3
	"
source="https://github.com/cortex/ripasso/archive/release-$pkgver.tar.gz"
builddir="$srcdir/$_pkgrelname-release-$pkgver"
options="net"


prepare() {
	default_prepare
	cargo update
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build -p ripasso-cursive --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm0755 target/release/ripasso-cursive \
	-t "$pkgdir"/usr/bin
}

sha512sums="
64a0a8fa0debbf16e6df41f26eec99f9cdb351305fb24ca1073f5c97d255ace15d4019de0bdd353cc396efc3ca7e7667da55d2eab9c37313d60b47533ea8352c  release-0.7.0.tar.gz
"
