# Template file for 'sheldon'
pkgname=sheldon
version=0.8.1
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libcurl-devel libgit2-1.9-devel openssl-devel"
checkdepends="git"
short_desc="Fast, configurable shell plugin manager"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="Apache-2.0 OR MIT"
homepage="https://sheldon.cli.rs/"
changelog="https://raw.githubusercontent.com/rossmacarthur/sheldon/trunk/RELEASES.md"
distfiles="https://github.com/rossmacarthur/sheldon/archive/refs/tags/${version}.tar.gz"
checksum=fa0aade40a2e2f397f5f8734a0bc28391147ed6ad75c087f8ab7db7ce1e49b88

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

	vlicense LICENSE-MIT
	vdoc README.md
}
