nibon7 6f13a550ec testing/nushell: upgrade to 0.34.0
Signed-off-by: nibon7 <nibon7@163.com>
2021-07-15 15:42:08 +00:00

37 lines
1.3 KiB
Plaintext

# Contributor: nibon7 <nibon7@163.com>
# Maintainer: nibon7 <nibon7@163.com>
pkgname=nushell
pkgver=0.34.0
pkgrel=0
pkgdesc="A new type of shell"
url="https://www.nushell.sh"
# s390x, mips, mips64: limited by cargo
arch="all !s390x !mips !mips64 !riscv64"
license="MIT"
makedepends="cargo pkgconf openssl-dev libx11-dev libxcb-dev libgit2-dev python3"
source="$pkgname-$pkgver.tar.gz::https://github.com/nushell/nushell/archive/$pkgver.tar.gz
0001-remove-dataframe-feature-from-default.patch"
# The parquet crate required by dataframe has some implementations that depend on specific architectures
case "$CARCH" in
x86_64 | aarch64 | arm*) _cargo_opts="--locked --features extra,dataframe" ;;
*) _cargo_opts="--locked --features extra" ;;
esac
build() {
cargo build --release $_cargo_opts
}
check() {
# Some tests may timeout on armhf with release build
cargo test $_cargo_opts
}
package() {
cargo install $_cargo_opts --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates*
}
sha512sums="3063d2c842d30c862ca2948b38da726604347cf0c936b99542111087c796e1288657b0a094e486a3d02bed9f5b19edba08348fba285e777c64bcf8f19d888003 nushell-0.34.0.tar.gz
f1b87fd1b08641dd2526309806392cbd5267ffc1ee31569874f56217eb26e422994a5a4cce38335c0152775ca186bf75fd7890ec85a6b031cca06318e63dd035 0001-remove-dataframe-feature-from-default.patch"