From 23fade3d89e2bb5069656df5ea778b9629f4db6c Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 30 Jan 2021 21:29:13 +0300 Subject: [PATCH] nushell: update to 0.26.0 Also enable extra features The "bson" feature is reported to not build successfully on arm, so it is disabled --- srcpkgs/nushell/template | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/srcpkgs/nushell/template b/srcpkgs/nushell/template index 843eda01b71..efecb2b25a9 100644 --- a/srcpkgs/nushell/template +++ b/srcpkgs/nushell/template @@ -1,22 +1,36 @@ # Template file for 'nushell' pkgname=nushell -version=0.21.0 +version=0.26.0 revision=1 -# raw-cpuid does not support other archs -# https://github.com/nushell/nushell/issues/485 -# remove when the issue is fixed (should fix all archs) -archs="x86_64* i686*" -wrksrc="nu-${version}" build_style=cargo -hostmakedepends="pkg-config" -makedepends="libressl-devel" +configure_args="--features=extra" +hostmakedepends="pkg-config libgit2-devel" +makedepends="libressl-devel libX11-devel libxcb-devel libgit2-devel" short_desc="Modern shell for the GitHub era" maintainer="Jan Christian Grünhage " license="MIT" homepage="https://www.nushell.sh/" changelog="https://www.nushell.sh/blog/" -distfiles="https://static.crates.io/crates/nu/nu-${version}.crate" -checksum=44b0dc4127433373d6ce1b5ba50c56780f23b861654fce3b48d5b599758e772c +distfiles="https://github.com/nushell/nushell/archive/${version}.tar.gz" +checksum=66fbfe1297997a3f6b2181cd723816150ad2453527c7cab6c83a9c67b9af2478 +register_shell="/bin/nu" + +case "$XBPS_TARGET_MACHINE" in + armv* | aarch64*) + hostmakedepends+=" python3" ;; +esac + +pre_build() { + # bson feature doesn't build on ARM + case "$XBPS_TARGET_MACHINE" in + armv* | aarch64*) + vsed -i '91s/"bson", //' Cargo.toml ;; + esac +} + +do_check() { + : # cargo tests fail with argument --target +} post_install() { vlicense LICENSE