# Template file for 'qsv'
pkgname=qsv
version=2.2.1
revision=1
archs="x86_64* i686* aarch64* arm*" # ring
build_style=cargo
configure_args="--features=feature_capable"
make_check_args="-- --skip=test_comments --skip=test_sample --skip=test_sort
 --skip=test_describegpt"
hostmakedepends="pkg-config"
makedepends="libzstd-devel"
short_desc="CLI toolkit for CSV data-wrangling"
maintainer="icp <pangolin@vivaldi.net>"
license="Unlicense"
homepage="https://qsv.dathere.com"
changelog="https://raw.githubusercontent.com/dathere/qsv/master/CHANGELOG.md"
distfiles="https://github.com/dathere/qsv/archive/refs/tags/${version}.tar.gz"
checksum=3ada256641d4a56e82cd9d3e48f62188eb6d8dd80b96385ac72c302d729504a4

if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi

post_install() {
	for shell in bash fish zsh; do
		vcompletion contrib/completions/examples/qsv.$shell $shell
	done
}
