From 4bdcf022e93308efe5ca4d1625b14156f0d21ee1 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 30 Jan 2021 21:29:13 +0300 Subject: [PATCH] nushell: update to 0.27.0 Also enable extra features for x86_64* and i686* --- srcpkgs/nushell/template | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/srcpkgs/nushell/template b/srcpkgs/nushell/template index 843eda01b71..f42cd9776ee 100644 --- a/srcpkgs/nushell/template +++ b/srcpkgs/nushell/template @@ -1,22 +1,26 @@ # Template file for 'nushell' pkgname=nushell -version=0.21.0 +version=0.27.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=0d086c660af2e6e286fcac0d0063607bd302961ba542a087145f6a3948fd7130 +register_shell="/usr/bin/nu" +# all tests fail with argument --target +make_check=no + +case "$XBPS_TARGET_MACHINE" in + x86_64*|i686*) + configure_args="--features=extra" + makedepends+=" libX11-devel libxcb-devel" ;; +esac post_install() { vlicense LICENSE