# Template file for 'pueue'
pkgname=pueue
version=3.4.1
revision=1
build_style=cargo
build_helper="qemu"
make_install_args="--path pueue"
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/refs/tags/v${version}.tar.gz"
checksum=868710de128db49e0a0c4ddee127dfc0e19b20cbdfd4a9d53d5ed792c5538244
make_check=no  # tests are nondeterministic

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

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

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

	vlicense LICENSE
}
