# Template file for 'pijul'
pkgname=pijul
version=1.0.0.beta.9
revision=1
_crates_version="${version%.*.*}-${version#*.*.*.}"
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libsodium-devel openssl-devel"
short_desc="Distributed version control system based on patches"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://pijul.org/"
distfiles="https://static.crates.io/crates/pijul/pijul-${_crates_version}.crate"
checksum=c51a43abf66dfdd63393f9d7e426129a769c7345d64d451a30be9399733062d2

post_install() {
	for shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/pijul completion ${shell} > pijul.${shell}
		vcompletion pijul.${shell} ${shell}
	done
}
