# Template file for 'pueue'
pkgname=pueue
version=2.1.0
revision=1
build_style=cargo
build_helper="qemu"
short_desc="Command-line tool for managing long-running tasks"
maintainer="crater2150 <void@qwertyuiop.de>"
license="MIT"
homepage="https://github.com/Nukesor/pueue"
changelog="https://raw.githubusercontent.com/Nukesor/pueue/main/CHANGELOG.md"
distfiles="https://github.com/Nukesor/pueue/archive/v${version}.tar.gz"
checksum=cd5c6500e65960f6a102db5d0f0544f49eec8f74b2cc0df16ded8e2525a545f6

case "$XBPS_TARGET_MACHINE" in
	x86_64*|i686*|arm*|aarch64*) ;;
	*) broken="ftbfs in ring" ;;
esac

post_build() {
	for shell in bash fish zsh; do
		vtargetrun target/${RUST_TARGET}/release/pueue completions $shell .
	done
}

post_install() {
	vlicense LICENSE

	vcompletion _pueue zsh pueue
	vcompletion pueue.bash bash pueue
	vcompletion pueue.fish fish pueue
}
