From ee56a35aae10bcc7d290cb63f42ff66d634028af 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 for x86_64* and i686* --- srcpkgs/nushell/template | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/srcpkgs/nushell/template b/srcpkgs/nushell/template index 843eda01b71..ff8fe2fbeb6 100644 --- a/srcpkgs/nushell/template +++ b/srcpkgs/nushell/template @@ -1,22 +1,28 @@ # 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" +hostmakedepends="pkg-config libgit2-devel" +makedepends="libressl-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 + x86_64* | i686*) + configure_args="--features=extra" + makedepends+=" libX11-devel libxcb-devel" ;; +esac + +do_check() { + : # cargo test fails with argument --target +} post_install() { vlicense LICENSE