mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-28 03:51:35 +01:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
# Contributor: nibon7 <nibon7@163.com>
|
|
# Maintainer: nibon7 <nibon7@163.com>
|
|
pkgname=nushell
|
|
pkgver=0.36.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="ece67e124db1b3d000aba88eff80e8f0ab88600ef3bc0e2ed1836f0c78a40384e7e2ff8183f889b5f2592f76e4f010e6526eecb51892d24810afec882a7b0ed2 nushell-0.36.0.tar.gz
|
|
f1b87fd1b08641dd2526309806392cbd5267ffc1ee31569874f56217eb26e422994a5a4cce38335c0152775ca186bf75fd7890ec85a6b031cca06318e63dd035 0001-remove-dataframe-feature-from-default.patch"
|