# Template file for 'sequoia-sop'
pkgname=sequoia-sop
version=0.32.0
revision=1
build_style=cargo
configure_args="--bin sqop --features cli,sequoia-openpgp/compression"
hostmakedepends="pkg-config llvm clang"
makedepends="nettle-devel bzip2-devel"
short_desc="Implementation of the Stateless OpenPGP CLI using Sequoia"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-sop/"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sop/-/archive/v${version}/sequoia-sop-v${version}.tar.gz"
checksum=7a488838f7f3a069199f81a756b7b2d58044cef4d6fc1e371225e91627c9dfd8

post_install() {
	for page in man-sqop/*; do
		vman ${page}
	done
	local comp_dir="$(echo target/"${RUST_TARGET}"/release/build/sequoia-sop-*/out)"
	vcompletion "${comp_dir}/_sqop" zsh
	vcompletion "${comp_dir}/sqop.bash" bash
	vcompletion "${comp_dir}/sqop.fish" fish
}
