# Template file for 'nushell'
pkgname=nushell
version=0.71.0
revision=1
build_style=cargo
configure_args="--features=extra"
hostmakedepends="pkg-config python3 libgit2-devel"
makedepends="openssl-devel libgit2-devel libX11-devel libxcb-devel
 libatomic-devel libcurl-devel libzstd-devel liblz4-devel zlib-devel
 nghttp2-devel bzip2-devel sqlite-devel"
short_desc="Modern shell for the GitHub era"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT"
homepage="https://www.nushell.sh/"
changelog="https://www.nushell.sh/blog/"
distfiles="https://github.com/nushell/nushell/archive/refs/tags/${version}.tar.gz"
checksum=0f3a279ead004c86c44b6c9991e9e838b819dad23d65add7250a9691ad29f209
register_shell="/usr/bin/nu"
# all tests fail with argument --target
make_check=no

case "$XBPS_TARGET_MACHINE" in
	i686*)
		broken='https://build.voidlinux.org/builders/i686_builder/builds/33520/steps/shell_3/logs/stdio'
		;;
	ppc*) broken="arrow-rs parquet is busted garbage";;
esac

post_install() {
	vlicense LICENSE
}
