# Template file for 'ffsend'
pkgname=ffsend
version=0.2.76
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Fully featured Firefox Send client"
maintainer="Jasper Chan <jasperchan515@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/timvisee/ffsend"
distfiles="https://github.com/timvisee/ffsend/archive/v${version}.tar.gz"
checksum=7d91fc411b7363fd8842890c5ed25d6cc4481f76cd48dcac154cd6e99f8c4d7b

post_extract() {
	# avoid ring dependency
	vsed -i 's,"crypto-ring","crypto-openssl",' Cargo.toml
}

post_install() {
	vcompletion contrib/completions/ffsend.bash bash
	vcompletion contrib/completions/ffsend.fish fish
	vcompletion contrib/completions/_ffsend zsh
}
