void-packages/srcpkgs/nushell/template

39 lines
1.2 KiB
Bash

# Template file for 'nushell'
pkgname=nushell
version=0.88.1
revision=2
build_style=cargo
configure_args="--features=extra"
hostmakedepends="pkg-config python3 libgit2-devel"
makedepends="openssl-devel libgit2-devel libX11-devel libxcb-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=19f5a46799142117f61989a76f85fdd24361fe9e5068565d7fff36b91a7a7a39
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
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi
post_install() {
vlicense LICENSE
vsconf crates/nu-utils/src/sample_config/default_config.nu
vsconf crates/nu-utils/src/sample_config/default_env.nu
vsconf crates/nu-utils/src/sample_config/sample_login.nu
}