# Maintainer: Jakub Panek pkgname=sequoia-sq pkgver=0.31.0 pkgrel=2 pkgdesc="Command-line frontends for Sequoia" url="https://gitlab.com/sequoia-pgp/sequoia-sq" # rust-ring arch="all !ppc64le !s390x !riscv64" license="GPL-2.0-or-later" makedepends=" bzip2-dev cargo cargo-auditable clang-dev openssl-dev sqlite-dev " checkdepends="bash" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://gitlab.com/sequoia-pgp/sequoia-sq/-/archive/v$pkgver/sequoia-sq-v$pkgver.tar.bz2" builddir="$srcdir/sequoia-sq-v$pkgver" options="net" # cargo deps export CARGO_PROFILE_RELEASE_LTO=thin prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { export CARGO_TARGET_DIR=target cargo auditable build --frozen --release --no-default-features --features crypto-openssl } check() { cargo test --frozen --no-default-features --features crypto-openssl } package() { install -Dm755 target/release/sq \ -t "$pkgdir"/usr/bin/ install -Dm644 target/_sq \ "$pkgdir"/usr/share/zsh/site-functions/_sq install -Dm644 target/sq.bash \ "$pkgdir"/usr/share/bash-completion/completions/sq install -Dm644 target/sq.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/sq.fish install -Dm644 target/release/build/sequoia-sq-*/out/*.1 \ -t "$pkgdir"/usr/share/man/man1/ } sha512sums=" 608ae3a0ff1147b325e8d08534aafa39b91033b4a03312ce89000405511cca7b530936e36e4874e4735cd58d13d6caf035f8eb8aa7f24a19b2c71cd8913cd937 sequoia-sq-v0.31.0.tar.bz2 "